/AWS1/CL_ORG=>DELETEORGANIZATIONALUNIT()
¶
About DeleteOrganizationalUnit¶
Deletes an organizational unit (OU) from a root or another OU. You must first remove all accounts and child OUs from the OU that you want to delete.
This operation can be called only from the organization's management account.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_ORGANIZATIONALUNITID
TYPE /AWS1/ORGORGANIZATIONALUNITID
/AWS1/ORGORGANIZATIONALUNITID
¶
The unique identifier (ID) of the organizational unit that you want to delete. You can get the ID from the ListOrganizationalUnitsForParent operation.
The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.