Skip to main content
POST
/
file-entries
/
delete
# Move to trash
curl -X POST https://app.drime.cloud/api/v1/file-entries/delete \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "entryIds": [123, 456],
    "deleteForever": false
  }'

# Permanently delete
curl -X POST https://app.drime.cloud/api/v1/file-entries/delete \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "entryIds": [123, 456],
    "deleteForever": true
  }'

# Empty trash
curl -X POST https://app.drime.cloud/api/v1/file-entries/delete \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "entryIds": [],
    "emptyTrash": true
  }'
{
  "status": "success"
}

Overview

Deletes one or more file entries. By default, entries are moved to trash. Use deleteForever: true to permanently delete.
Permanent deletion cannot be undone. Use with caution.

Request Body

entryIds
array
required
Array of entry IDs to delete
deleteForever
boolean
default:"false"
When true, permanently delete instead of moving to trash
emptyTrash
boolean
default:"false"
When true with empty entryIds, permanently deletes all items in trash

Response

status
string
Request status (success)
# Move to trash
curl -X POST https://app.drime.cloud/api/v1/file-entries/delete \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "entryIds": [123, 456],
    "deleteForever": false
  }'

# Permanently delete
curl -X POST https://app.drime.cloud/api/v1/file-entries/delete \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "entryIds": [123, 456],
    "deleteForever": true
  }'

# Empty trash
curl -X POST https://app.drime.cloud/api/v1/file-entries/delete \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "entryIds": [],
    "emptyTrash": true
  }'
{
  "status": "success"
}