Module Smaws_Client_Organizations.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.

You can only call this operation from the management account.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `InvalidInputException of Types.invalid_input_exception | `OrganizationalUnitNotEmptyException of Types.organizational_unit_not_empty_exception | `OrganizationalUnitNotFoundException of Types.organizational_unit_not_found_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.delete_organizational_unit_request -> (Smaws_Lib.Smithy_api.Types.unit_, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `InvalidInputException of Types.invalid_input_exception | `OrganizationalUnitNotEmptyException of Types.organizational_unit_not_empty_exception | `OrganizationalUnitNotFoundException of Types.organizational_unit_not_found_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.delete_organizational_unit_request -> (Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `InvalidInputException of Types.invalid_input_exception | `OrganizationalUnitNotEmptyException of Types.organizational_unit_not_empty_exception | `OrganizationalUnitNotFoundException of Types.organizational_unit_not_found_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception ] * Smaws_Lib.Response.metadata) Stdlib.result