Module Smaws_Client_WorkMail.DeleteUser

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.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `DirectoryServiceAuthenticationFailedException of Types.directory_service_authentication_failed_exception | `DirectoryUnavailableException of Types.directory_unavailable_exception | `EntityStateException of Types.entity_state_exception | `InvalidParameterException of Types.invalid_parameter_exception | `OrganizationNotFoundException of Types.organization_not_found_exception | `OrganizationStateException of Types.organization_state_exception | `UnsupportedOperationException of Types.unsupported_operation_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.delete_user_request -> (Types.delete_user_response, [> Smaws_Lib.Protocols.AwsJson.error | `DirectoryServiceAuthenticationFailedException of Types.directory_service_authentication_failed_exception | `DirectoryUnavailableException of Types.directory_unavailable_exception | `EntityStateException of Types.entity_state_exception | `InvalidParameterException of Types.invalid_parameter_exception | `OrganizationNotFoundException of Types.organization_not_found_exception | `OrganizationStateException of Types.organization_state_exception | `UnsupportedOperationException of Types.unsupported_operation_exception ]) Stdlib.result