VMware Workspace ONE Community
syarbrou
Enthusiast
Enthusiast

API for deleting a device?

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.

0 Kudos
2 Replies
AaronWhittaker
Enthusiast
Enthusiast

Try this

DELETE /API/mdm/devices/{id}

pastedImage_0.png

0 Kudos
BRIANJENKINSBRI
Enthusiast
Enthusiast

That's the same API we use as well.

0 Kudos