API Reference
Using the Ag.dev API
Delete a directory tree within a drive
cURL
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 }
Provide either X-API-Key: or Authorization: Bearer
Drive ID
Path to delete (directory tree). Must start with "/" and must not include ".." segments
Delete job queued
Deletion status message
Delete job ID
Number of documents affected