Devices are deactivated by deleting the device. The sample shows the DELETE /environments/{{envID}}/users/{{userID}}/devices/{{deviceID}} operation to remove the device specified in the request URL.

When the device is removed successfully, the response returns a 204 Successfully deleted message.