# Delete Managed Policy

> `UiPath.AmazonWebServices.Activities.DeleteManagedPolicy`

`UiPath.AmazonWebServices.Activities.DeleteManagedPolicy`

## Description

Deletes the specified managed policy, including all versions of the policy.

## Project compatibility

Windows - Legacy | Windows | Cross-platform

## Configuration

### Input

* **PolicyArn** - The Amazon Resource Name (ARN) of the managed policy to delete.
* **DetachPolicyFromIAMIdentities** - Indicates whether to detach the policy from all users, groups, and roles that it is attached to, or not.
  :::important
  If option `DetachPolicyFromIAMIdentities` is selected, the activity detaches the policy from all users, groups, and roles that it is attached to. If this option is not selected and the policy is still attached to IAM identities, the deletion will fail.
  :::
