Skip to main content

DELETE /resources/wrappers/files/

Delete a previously uploaded file from both the database and disk storage. This operation is permanent and cannot be undone.

Authentication

No authentication required.

Path Parameters

file_id
string
required
The unique identifier of the uploaded file to delete.

Response

message
string
required
Success message confirming the file was deleted.

Example Request

curl -X DELETE https://api.example.com/resources/wrappers/files/a1b2c3d4-5e6f-7g8h-9i0j-k1l2m3n4o5p6

Example Response

Success

{
  "message": "File deleted successfully"
}

Error Responses

404 Not Found

File not found:
{
  "detail": "File not found"
}

Notes

  • The deletion operation removes the file from both the database and disk storage
  • If the file directory becomes empty after deletion, it will also be removed
  • If a wrapper is currently using this file, deletion may cause the wrapper to fail
  • There is no recovery option once a file is deleted

Build docs developers (and LLMs) love