Removing the Device
Removing a device ends its relationship with your organisation. Do it after you have copied your data off, because it deletes the escrowed disk recovery key. If you leave with admrl device exit, Admiral removes the device for you when the image has been written.
You need the Remove devices capability on the device. Removal is recorded in the organisation audit log.
Remove a Device in the Dashboard
- Open the device and select Settings.
- In the Danger zone card, click Delete device.
- Under Decommission action, choose an option (see below).
- Click Delete.
You can also delete from the device list: select one or more devices, or use the action menu on a device, and the same dialog appears.
Decommission Options
| Option | What it does to the record | What it sends to the device |
|---|---|---|
| Unpair Only (the dialog's default) | Keeps the record, including its history and the escrowed recovery key. Clears the fleet and organisation, and issues a new pairing key so the device can be claimed again. | Nothing about its disk. The device is told to drop its binding. |
| Reset Identity | Deletes the record, and the recovery key with it. | An unpair command. The device clears its identity and its workload can keep running offline. |
| Full Erase | Deletes the record, and the recovery key with it. | An unpair-and-erase instruction: the device is asked to wipe its storage and return to factory state. |
All three options also:
- Remove every access grant on the device and revoke its Mesh key, so it can no longer connect.
- Delete the device's secret files from Admiral Cloud and end any open remote sessions.
- Take the device out of your active fleet count for billing.
- Send a
fleet.node.removedwebhook event.
Which one to pick when you are leaving
Choose Reset Identity.
- Unpair Only keeps the record and the key. Use it when you plan to re-claim the device, not when you are leaving.
- Full Erase asks the device to wipe itself. If the device is still online and running Admiral, that destroys the data you may still want. If you have already reflashed it, there is no Admiral agent left to act on the request.
If the device is offline or already reflashed, removal still completes: Admiral sends the command on a best-effort basis and removes the record regardless.
API
curl -s -X DELETE "https://api.admrl.co/v1/devices/$DEVICE_ID?decommission_action=reset_identity" \
-H "X-Organization-ID: $ORG_ID" \
-H "X-API-Token-ID: $TOKEN_ID" -H "X-API-Secret-Key: $TOKEN_SECRET"
decommission_action is none, reset_identity or erase. When you leave it out, the API uses reset_identity, which differs from the dashboard's default of Unpair Only.
See the API reference for authentication and the organisation header.