deleteAccount method
Deletes the specified Amazon Chime account. You must suspend all users
before deleting a Team
account. You can use the
BatchSuspendUser action to do so.
For EnterpriseLWA
and EnterpriseAD
accounts, you
must release the claimed domains for your Amazon Chime account before
deletion. As soon as you release the domain, all users under that account
are suspended.
Deleted accounts appear in your Disabled
accounts list for 90
days. To restore a deleted account from your Disabled
accounts list, you must contact AWS Support.
After 90 days, deleted accounts are permanently removed from your
Disabled
accounts list.
May throw UnauthorizedClientException. May throw NotFoundException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw UnprocessableEntityException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter accountId
:
The Amazon Chime account ID.
Implementation
Future<void> deleteAccount({
required String accountId,
}) async {
ArgumentError.checkNotNull(accountId, 'accountId');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/accounts/${Uri.encodeComponent(accountId)}',
exceptionFnMap: _exceptionFns,
);
}