Skip to content

/AWS1/CL_ORG=>DELETEPOLICY()

About DeletePolicy

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 or by a member account that is a delegated administrator for an Amazon Web Services service.

Method Signature

IMPORTING

Required arguments:

IV_POLICYID TYPE /AWS1/ORGPOLICYID /AWS1/ORGPOLICYID

The unique identifier (ID) of the policy that you want to delete. You can get the ID from the ListPolicies or ListPoliciesForTarget operations.

The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).