---
title: "Delete a device."
method: DELETE
path: "/endpoints/v1/devices/{deviceID}"
tags: ["Endpoints"]
---

# Delete a device.

`DELETE /endpoints/v1/devices/{deviceID}`

## Request

- Base URL: `https://apis.druva.com/insync`
- URL: `https://apis.druva.com/insync/endpoints/v1/devices/{deviceID}`
- Auth: API key in header `Authorization`

Deletes a device in the system. When you delete a device:
 1) All the device data (restore points) is deleted.
 2) You can roll back the deleted device from Rollback Actions until the rollback window lapses.
 3) After the rollback window lapses, the device will be deleted permanently. For more information, see <a href=https://docs.druva.com/Cyber_Resilience/Rollback_Actions>Rollback Actions</a>.

## Path parameters

- `deviceID` integer, required

## Request body

- object
  - `deletionReason` string: Specify the reason for device deletion, (the character limit of reason is between 10-150) . This capability will help prevent accidental deletions. If no reason is specified, the default reason i.e. <b>API initiated Device Deletion</b> will be displayed.

## Response `200`

OK

- unknown

## Other responses

- `400`: Bad Request
- `401`: The request did not include an authentication token or an expired authentication token was supplied.
- `403`: Access denied: Insufficient permissions. User requires specific access rights and minimum permissions. Details: https://help.druva.com/en/articles/15069296
- `404`: The requested resource was not found.
- `422`: The request was well-formed but was unprocessable due to semantic errors.
- `500`: The request was not processed due to an internal error in inSync Cloud.
- `501`: Requested HTTP method is not implemented.

---

[API](https://skmtc.dev/druva/apis/insync-cloud.md) - [All operations](https://skmtc.dev/druva/apis/insync-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/insync-cloud/revisions/a0ce6d05033c?raw)
