Close Account
| organizations_close_account | R Documentation |
Closes an Amazon Web Services member account within an organization¶
Description¶
Closes an Amazon Web Services member account within an organization. You
can close an account when all features are
enabled
. You can't close the management account with this API. This is an
asynchronous request that Amazon Web Services performs in the
background. Because close_account operates asynchronously, it can
return a successful completion message even though account closure might
still be in progress. You need to wait a few minutes before the account
is fully closed. To check the status of the request, do one of the
following:
- Use the
AccountIdthat you sent in theclose_accountrequest to provide as a parameter to thedescribe_accountoperation.
While the close account request is in progress, Account status will indicate PENDING_CLOSURE. When the close account request completes, the status will change to SUSPENDED.
-
Check the CloudTrail log for the
CloseAccountResultevent that gets published after the account closes successfully. For information on using CloudTrail with Organizations, see Logging and monitoring in Organizations in the Organizations User Guide. -
Resources remaining within the account after closing will be automatically deleted after 90 days. During this 90-day period, the resources won't be available unless you contact Amazon Web Services Support to reopen the account. After 90 days, you can't reopen an account. You might still receive a bill after account closure.
-
Within a rolling 30 day period you can close the higher of either 250 or 20% of the member accounts in your organization, up to a maximum of 1,000. This quota is not bound by a calendar month, but starts when you close an account. After you reach this limit, you can't close additional accounts. For more information, see Closing a member account in your organization and Quotas for Organizations in the Organizations User Guide.
-
To reinstate a closed account, contact Amazon Web Services Support within the 90-day grace period while the account is in SUSPENDED status.
-
If the Amazon Web Services account you attempt to close is linked to an Amazon Web Services GovCloud (US) account, the
close_accountrequest will close both accounts. To learn important pre-closure details, see Closing an Amazon Web Services GovCloud (US) account in the Amazon Web Services GovCloud User Guide.
After the permanent termination of the account after the 90-day waiting
period, Organizations logs a membership event in CloudTrail. The event
is an AccountDepartedOrganization event with departedMethod:Cleaned
and departedTime. This event is available only in the management
account's event history.
Usage¶
organizations_close_account(AccountId)
Arguments¶
AccountId |
[required] Retrieves the Amazon Web Services account Id for the
current |
Value¶
An empty list.
Request syntax¶
svc$close_account(
AccountId = "string"
)