---
title: "Status of a user deletion"
description: "``running`` while the workflow works, ``completed`` once every store\nis clean, ``failed`` when the run ended without completing (call\n``DELETE`` again). Details per store are in the service logs."
---

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

Path: AI Gateway API › Users

`GET /users/{user_id}/deletion`

``running`` while the workflow works, ``completed`` once every store
is clean, ``failed`` when the run ended without completing (call
``DELETE`` again). Details per store are in the service logs.

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Path parameters

- `user_id` (`get_user_deletion.path.user_id`; string, required)

## Header parameters

- `X-On-Behalf-Of` (`get_user_deletion.header.X-On-Behalf-Of`; any of, optional)
  - any of: `string`, `null`
- `X-External-User-Id` (`get_user_deletion.header.X-External-User-Id`; any of, optional)
  - any of: `string`, `null`
- `X-App-Id` (`get_user_deletion.header.X-App-Id`; any of, optional)
  - any of: `string`, `null`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://truememory-api.mvstg.com/users/<user_id>/deletion' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://truememory-api.mvstg.com/users/<user_id>/deletion';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://truememory-api.mvstg.com/users/<user_id>/deletion"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Successful Response

#### Example

```json
{
  "user_id": "string",
  "status": "accepted",
  "requested_at": "2019-08-24T14:15:22Z",
  "completed_at": "2019-08-24T14:15:22Z"
}
```

- `user_id` (`get_user_deletion.response.200.user_id`; string, required)
- `status` (`get_user_deletion.response.200.status`; string, required)
  - one of `"accepted"`, `"running"`, `"completed"`, `"failed"`
- `requested_at` (`get_user_deletion.response.200.requested_at`; string, required)
  - format `date-time`
- `completed_at` (`get_user_deletion.response.200.completed_at`; any of, optional)
  - any of: `string`, `null`

### 422

Validation Error

#### Example

```json
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

- `detail` (`get_user_deletion.response.422.detail`; array<object>, optional)
  - `loc` (`get_user_deletion.response.422.detail.loc`; array<any of>, required)
    - any of: `string`, `integer`
  - `msg` (`get_user_deletion.response.422.detail.msg`; string, required)
  - `type` (`get_user_deletion.response.422.detail.type`; string, required)
  - `input` (`get_user_deletion.response.422.detail.input`; unknown, optional)
  - `ctx` (`get_user_deletion.response.422.detail.ctx`; object, optional)


Source: https://truememory-docs.mvstg.com/api/users/deletion/index.md
