Delete Policy
| organizations_delete_policy | R Documentation |
Deletes the specified policy from your organization¶
Description¶
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.
You can only call this operation from the management account or a member account that is a delegated administrator.
Usage¶
organizations_delete_policy(PolicyId)
Arguments¶
PolicyId |
[required] ID for the policy that you want to delete. You can get
the ID from the 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 (_). |
Value¶
An empty list.
Request syntax¶
svc$delete_policy(
PolicyId = "string"
)
Examples¶
## Not run:
# The following example shows how to delete a policy from an organization.
# The example assumes that you previously detached the policy from all
# entities:
#
#
svc$delete_policy(
PolicyId = "p-examplepolicyid111"
)
## End(Not run)