v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-143164631.2 MB

Removes the specified managed policy from the specified role.

A role can also have inline policies embedded with it. To delete an inline policy, use DeleteRolePolicy. For information about policies, see Managed policies and inline policies in the IAM User Guide.

post/#Action=DetachRolePolicy

Query parameters

Action'DetachRolePolicy' required
Version'2010-05-08' required

Response

Success