Skip to main content
Permanently delete an uploaded file and remove it from storage. This action cannot be undone.
Authorization
string
required
Bearer token obtained from the authenticate endpoint.
upload_id
string
required
Unique identifier of the upload to delete. This is the id returned by Upload Files or List Uploads.

Response

message
string
required
Confirmation message.
curl -X DELETE https://api.trellis.sh/v1/chats/uploads/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer YOUR_TOKEN"
import requests

response = requests.delete(
    "https://api.trellis.sh/v1/chats/uploads/550e8400-e29b-41d4-a716-446655440000",
    headers={"Authorization": "Bearer YOUR_TOKEN"}
)
result = response.json()
const response = await fetch(
  "https://api.trellis.sh/v1/chats/uploads/550e8400-e29b-41d4-a716-446655440000",
  {
    method: "DELETE",
    headers: { Authorization: "Bearer YOUR_TOKEN" },
  }
);
const result = await response.json();
{
  "message": "Upload deleted successfully"
}
{
  "detail": "Upload not found"
}