> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thanx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete User

> Submits a request for user account closure

This endpoint submits a request for account closure for the currently
authenticated user. The Thanx support team will review the request and interface
directly with that user to complete account closure. This endpoint optionally
accepts additional user input, though none is required. For non-production
environments, the API request will succeed but no support ticket will be filed.

For custom app builds, this endpoint can be used in conjunction with a custom
form to satisfy
[Apple](https://developer.apple.com/support/offering-account-deletion-in-your-app/)
and
[Google](https://support.google.com/googleplay/android-developer/answer/13327111?hl=en)'s
requirements for account deletion.

<Note>
  Please review proper request headers [here](/consumer/usage/headers).
</Note>

### Parameters

<ParamField body="message" type="string" optional>
  Optionally specified message that can be used to specify the user's reason
  for submitting a deletion request.
</ParamField>

### Response

<ResponseField name="message" type="string">
  Message describing the status of the deletion request
</ResponseField>

<RequestExample>
  ```bash Submit user deletion request theme={null}
  curl https://api.thanxsandbox.com/users/me \
    -X DELETE \
    -H "Content-Type: application/json"  \
    -H "Accept-Version: v4.0" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer ${token}" \
    -H "X-ClientId: ${client_id}" 
    -d '{"message": "Optional message"}'
  ```
</RequestExample>

<ResponseExample>
  ```json 202 theme={null}
  {
    "message": "User deletion request has been submitted"
  }
  ```

  ```json 503 theme={null}
  {
    "message": "Failed to create deletion request"
  }
  ```
</ResponseExample>
