---
title: "Deactivate multiple users"
description: "Deactivates one or more users on Mindtickle by Mindtickle user ID or by username."
contentType: "api-reference"
url: "https://developer.mindtickle.com/docs/users-and-groups/users/deactivate-multiple-users/"
---

## Prerequisites

1. [Authentication and setup](/docs/getting-started/authentication-and-setup/): A valid access token.
2. [Create a user](/docs/users-and-groups/users/create-a-user/): The users must exist.

## Endpoint

```http
POST /services/data/v4.0/mtobjects/Users/delete
```

Base URL: the standard REST host for your region. See [Base URLs](/docs/getting-started/authentication-and-setup/#base-urls).

Headers: `Authorization: Bearer ACCESS_TOKEN`, `Content-Type: application/json`.

## Request

The body is an array of objects, one object per user.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Required if `username` is not sent | Mindtickle user ID of the user you want to deactivate. |
| `username` | string | Required if `id` is not sent | Username of the user you want to deactivate. |

### Request example

By Mindtickle user ID:

```json
[
  {
    "id": "123456789abcd101"
  },
  {
    "id": "123456789abcd102"
  },
  {
    "id": "123456789abcd103"
  }
]
```

By username:

```json
[
  {
    "username": "alex.fry@example.com"
  },
  {
    "username": "anna.cruz@example.com"
  },
  {
    "username": "rosalia.flores@example.com"
  }
]
```

## Response

| Field | Type | Description |
| --- | --- | --- |
| `processIds` | Array[string] | Mindtickle process IDs. Use them to check the status of a request. |

### Response example

```json
{
  "processIds": ["1234567890123456104"]
}
```

## Notes

- **Async processing:** The request is queued, and the response returns process IDs you use to check the result.
- **Validation:** Provide either the Mindtickle user IDs or the usernames, not a mix of both.
- **Usernames:** When you provide usernames, provide the username of each user if UID is enabled for your Mindtickle instance, and their email address if UID is not enabled.

## Related

- [Search users](/docs/users-and-groups/users/search-users/): Find the user IDs or usernames this endpoint needs.
- [Deactivate a user](/docs/users-and-groups/users/deactivate-a-user/): Deactivate a single user.
- [Check process status](/docs/users-and-groups/users/check-process-status/): Check the status of the returned process IDs.
