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

# Deactivate SIMs using the REST API

> Deactivate SIMs in bulk using the REST API, and understand the implications of permanent SIM deactivation.

## How to deactivate SIMs using the REST API

Use the **POST** `/devices/batch/state` endpoint to deactivate one or more SIMs by device ID (`deviceids`).

> [!CAUTION]
>
> **Danger:** SIM deactivation is permanent and irreversible once completed. If you plan to reuse SIMs, do not deactivate them, [pause them instead](https://docs.hologram.io/dashboard/sim-actions/pause-resume-sims.md).

### Send a request to set state=deactivate using cURL

```bash cURL theme={null}
curl --request POST \
  'https://dashboard.hologram.io/api/1/devices/batch/state' \
  -u apikey:YOUR_HOLOGRAM_API_KEY \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "orgid": 12345,
    "deviceids": [123456, 234567],
    "state": "deactivate"
  }'
```

### Send a request to set state=deactivate using HTTP

```bash cURL theme={null}
curl --request POST \
  'https://dashboard.hologram.io/api/1/devices/batch/state' \
  -u apikey:YOUR_HOLOGRAM_API_KEY \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "orgid": 12345,
    "deviceids": [123456, 234567],
    "state": "deactivate"
  }'
```

## Related actions

> [card] [Deactivate SIMs in your dashboard](https://docs.hologram.io/dashboard/sim-actions/deactivate-sims.md)
>
> Deactivate SIMs in your dashboard. Limited to 10 SIMs at a time.

> [card] [REST API endpoint](https://docs.hologram.io/api/1/devices/batch/state/post.md)
>
> Deactivate SIMs (bulk) `POST /devices/batch/state`

> [!NOTE]
>
> **Limited access:** Some functionality in your dashboard is restricted to [roles with access](https://docs.hologram.io/dashboard/orgs-and-users/user-roles.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.