Skip to main content
DELETE
/
drives
/
{driveId}
/
items
/
tree
Delete Drive Tree
curl --request DELETE \
  --url https://api.ag.dev/v0.1/drives/{driveId}/items/tree \
  --header 'X-API-Key: <api-key>'
{
  "message": "<string>",
  "jobId": "<string>",
  "documentCount": 123
}

Authorizations

X-API-Key
string
header
required

Provide either X-API-Key: or Authorization: Bearer

Path Parameters

driveId
string
required

Drive ID

Query Parameters

path
string
required

Path to delete (directory tree). Must start with "/" and must not include ".." segments

Response

Delete job queued

message
string
required

Deletion status message

jobId
string
required

Delete job ID

documentCount
integer

Number of documents affected