Devices are deactivated by deleting the device. The sample shows the DELETE /environments/{environmentId}/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.