Skip to content

Delete File Endpoint

DELETE
/api/files/delete/{file_path}
curl --request DELETE \
--url http://localhost:8000/api/files/delete/example
file_path
required
File Path

Path relative to data directory

string

Path relative to data directory

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}