Removes a member account from its parent organization. This version of the operation is performed by the account that wants to leave. To remove a member account as a user in the master account, use RemoveAccountFromOrganization instead.
organizations_leave_organization()
This operation can be called only from a member account in the organization.
The master account in an organization with all features enabled can
set service control policies (SCPs) that can restrict what
administrators of member accounts can do. This includes preventing
them from successfully calling LeaveOrganization
and leaving the
organization.
You can leave an organization as a member account only if the account is configured with the information required to operate as a standalone account. When you create an account in an organization using the AWS Organizations console, API, or CLI commands, the information required of standalone accounts is not automatically collected. For each account that you want to make standalone, you must do the following steps:
Accept the end user license agreement (EULA)
Choose a support plan
Provide and verify the required contact information
Provide a current payment method
AWS uses the payment method to charge for any billable (not free tier) AWS activity that occurs while the account isn\'t attached to an organization. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.
You can leave an organization only after you enable IAM user access to billing in your account. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost Management User Guide.
# NOT RUN {
# TThe following example shows how to remove your member account from an
# organization:
svc$leave_organization()
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab