Smaws_Client_WorkMail.DeleteUser
val request :
Smaws_Lib.Context.t ->
delete_user_request ->
(delete_user_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `DirectoryServiceAuthenticationFailedException of
directory_service_authentication_failed_exception
| `DirectoryUnavailableException of directory_unavailable_exception
| `EntityStateException of entity_state_exception
| `InvalidParameterException of invalid_parameter_exception
| `OrganizationNotFoundException of organization_not_found_exception
| `OrganizationStateException of organization_state_exception
| `UnsupportedOperationException of unsupported_operation_exception ])
Stdlib.result
Deletes a user from WorkMail and all subsequent systems. Before you can delete a user, the user state must be DISABLED
. Use the DescribeUser
action to confirm the user state.
Deleting a user is permanent and cannot be undone. WorkMail archives user mailboxes for 30 days before they are permanently removed.