Skip to content
Endpoint ManagementMarkdown

Device removal

Remove a device for good; every part of the realm forgets it before its record goes.

AvailableAPI

Remove a device when it’s retired, wiped or gone for good. The realm doesn’t just delete a row: it cuts the device’s connection, deletes its security sensor’s registration from the security log, drops it from the AI fleet, and only then removes its record. Nothing is left half-known.

  • Privilege: removing needs MODIFY on the realm’s endpoint settings, which RealmOwner holds (Who can call).
  • Where: the API.
  • The device id, the id on its Device records entry.
  1. You remove it. The record turns removing, and from that moment the device is refused as a revoked one is.
  2. Each part forgets it. The device’s open streams are cut, its sensor’s registration and its system inventory are deleted, and the AI fleet drops the device.
  3. The record goes, once each part has forgotten it. Its place under the realm’s Device limits is free again.

If removal is interrupted, the realm finishes it on its own; the device stays removing until then.

Remove the device by its device id (Call the API):

Terminal window
curl -X DELETE https://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/<device id> \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"

The realm answers 202: the removal is accepted and finishes in the background. An optional If-Match with the record’s ETag refuses a removal made over someone else’s change.

To tell when it’s done, read the record: it’s removing while it runs, and answers 404 once it’s gone.

Terminal window
curl https://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/<device id> \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"

On the device itself, uninstalling the package stops the device client and removes it with the sensor and the AI tools agent.

Nothing on the screen. The laptop keeps working and its data stays; the device client is refused from the moment of removal and connects to nothing again. Removing doesn’t wipe the device: uninstall the package there too.

StatusWhenWhat to do
403You lack MODIFY on the realm’s endpoint settingsAsk a realm administrator to grant it
404No device with that id in this realm, or it’s already goneNothing to do if you removed it before
412The record changed since the ETag you sentRead the record again and send its new ETag
WhatValue
Answer202, at once; the removal finishes in the background
UndoNone
Devices per callOne
SymptomCauseFix
The record stays removingA part of the realm hasn’t confirmed yetWait: the realm keeps trying until it’s done. Nothing else is needed
The device cap still counts the deviceIts removal hasn’t finishedWait until its record answers 404
The device’s sensor is still in the Detection & Response sensors listIts removal hasn’t finishedWait until its record answers 404

The start of a removal is recorded on the realm’s audit trail as a change to the device’s record (PATCHED, its status turning removing), with who made it, and the record going as DELETED. See What is recorded.

  • There’s no undo. A removed device comes back only by enrolling again (Device enrollment) with a new token.
  • Removing twice is harmless. A device already being removed is left as it is.
  • Uninstalling isn’t removing. Uninstalling the package leaves the device’s record in the realm; remove it there too.
  • No automatic cleanup. Devices that stop reporting aren’t removed on their own; remove them yourself.