Storage

Delete

Delete files and folders from Cludz Storage.
Storage Token is different from API Key. Get your Storage Token from Dashboard > Drive > Settings > Storage Token.

DELETE /storage/:uuid/:path

Delete a file or folder at the specified path.

Delete File

curl -X DELETE "https://storage.cludz.net/storage/{uuid}/documents/report.pdf" \
  -H "Token: YOUR_STORAGE_TOKEN"

Response

{
  "statusCode": 200,
  "message": "Deleted successfully"
}

Delete Folder

Folders are deleted recursively, including all files and subfolders:

curl -X DELETE "https://storage.cludz.net/storage/{uuid}/old-documents/" \
  -H "Token: YOUR_STORAGE_TOKEN"

!CAUTION Deleting a folder permanently removes all contents. This action cannot be undone.

Permissions

Delete operations require the canDelete permission on the parent directory.

Error Responses

StatusMessage
401Authentication required
403No delete permission
404Path not found

Code Examples

const response = await fetch('https://storage.cludz.net/storage/{uuid}/documents/old-file.pdf', {
  method: 'DELETE',
  headers: {
    'Token': 'YOUR_STORAGE_TOKEN'
  }
});

if (response.ok) {
  console.log('File deleted successfully');
}
Built with 💖 by Miza • © 2026 - Powered by Nuxt