curl --request DELETE \
--url https://api.example.com/api/files/{id} \
--header 'Authorization: <authorization>'{
"message": "<string>"
}curl --request DELETE \
--url https://api.example.com/api/files/{id} \
--header 'Authorization: <authorization>'{
"message": "<string>"
}Delete a file by its ID. This removes the file from storage and cleans up associated embeddings and knowledge base references.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/open-webui/open-webui/llms.txt
Use this file to discover all available pages before exploring further.
"File deleted successfully"curl -X DELETE https://your-domain.com/api/files/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer YOUR_TOKEN"
{
"message": "File deleted successfully"
}
user_id matches)DELETE /api/files/all - Delete all files (admin only)GET /api/files/{id} - Get file details before deletion