Permanently delete an uploaded file and remove it from storage. This action cannot be undone.
Bearer token obtained from the authenticate endpoint.
Response
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"
}