Documentation Index
Fetch the complete documentation index at: https://docs.getagentdrive.com/llms.txt
Use this file to discover all available pages before exploring further.
Request Body
The ID of the drive containing the folder.
The path of the folder to delete.
When false or omitted, returns a preview of how many files would be deleted. Set to true to perform the recursive deletion.
curl -X DELETE https://api.getagentdrive.com/v0/folders \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"drive_id": "drv_abc123",
"path": "documents/old/"
}'
{
"path": "documents/old/",
"file_count": 15,
"message": "This folder contains 15 files. Set confirm to true to delete."
}
Response (Preview)
The number of files that would be deleted.
A human-readable message describing the impact of the deletion.
Response (Confirmed)
Whether the deletion was successful.
The number of files that were deleted.