---
title: "Decommission an Unmanaged Device"
method: POST
path: "/v2/itam/unmanaged-device/{nodeId}/decommission"
tags: ["Unmanaged Devices"]
---

# Decommission an Unmanaged Device

`POST /v2/itam/unmanaged-device/{nodeId}/decommission`

## Request

- Base URL: `https://app.ninjarmm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ninjarmm.com/v2/itam/unmanaged-device/{nodeId}/decommission`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sessionKey`
- TypeScript: <https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/docs/v2/itam/unmanaged-device/:nodeId/decommission/post.ts> (a function with typed inputs; its response is checked against the schema)

Decommission an Unmanaged Device with the provided id

## Path parameters

- `nodeId` integer, required

## Response `200`

The Unmanaged Device was successfully decommissioned

## Other responses

- `400`: Request validation failed
- `403`: Insufficient permissions to perform operation
- `404`: An Unmanaged Device with the provided nodeId was not found

---

[API](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0.md) - [All operations](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/revisions/5ce571d1bb71?raw)
