go-unifi

Remove (Unadopt) Device

Removes (unadopts) an adopted device from the site. If the device is online, it will be reset to factory defaults.

DELETE
/v1/sites/{siteId}/devices/{deviceId}

Removes (unadopts) an adopted device from the site. If the device is online, it will be reset to factory defaults.

X-Api-Key<token>

UniFi API key. Create one under Control Plane → Admins & Users → your admin → Create API Key (requires controller 9.0.114+).

In: header

Path Parameters

siteId*string
deviceId*string

Response Body

curl -X DELETE "https://example.com/v1/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/devices/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty