Trying to figure out how to formulate an API call to delete a device from our system.
So I know things like the below to query the device:
/API/mdm/devices/{{deviceid}}/commands?command=DeviceQuery
But if I wanted to delete a specific device thru API how would I do that? If possible, thinking thru a Unix shell script as would be running it thru a Mac. Basically trying to wipe and reset a device between use and find that usually when i delete the existing record before recreating it things flow better where if I don't sometimes apps don't reinstall and show red x and stuff.
Try this
DELETE /API/mdm/devices/{id}
That's the same API we use as well.