v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1455233317.4 KB

Deletes the specified policy from your organization. Before you perform this operation, you must first detach the policy from all organizational units (OUs), roots, and accounts.

This operation can be called only from the organization's management account.

post/#X-Amz-Target=AWSOrganizationsV20161128.DeletePolicy

Headers

X-Amz-Target'AWSOrganizationsV20161128.DeletePolicy' required

Request body

PolicyIdstring required
<p>The unique identifier (ID) of the policy that you want to delete. You can get the ID from the <a>ListPolicies</a> or <a>ListPoliciesForTarget</a> operations.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).</p>

Response

Success