---
title: "Decommissioning a device."
method: POST
path: "/devices/{deviceId}/decommission"
tags: ["Devices"]
---

# Decommissioning a device.

`POST /devices/{deviceId}/decommission`

Decommissions a device. Once a device is decommissioned, vehicle images from that device can no longer be ingested. However, the device will remain in the system for compliance and auditing purposes.

## Path parameters

- `deviceId` string, required

## Response `204`

The device was successfully decommissioned.

## Other responses

- `401` — The provided token is either expired or invalid.
- `404` — The given device ID was not found.
- `429` — The maximum number of requests per second has been exceeded or the maximum number of devices that can be decommissioned per day has been exceeded.
- `500` — An internal error happened when processing the request.

---

[API](https://skmtc.net/flocksafety/apis/oauth-api.md) · [All operations](https://skmtc.net/flocksafety/apis/oauth-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flocksafety/oauth-api/revisions/126df7964ba5/schema)
