Skip to main content
DELETE
/
v1
/
files
/
{file_id}
Delete a file
curl --request DELETE \
  --url https://api.zerogpu.ai/v1/files/{file_id} \
  --header 'x-api-key: <api-key>' \
  --header 'x-project-id: <api-key>'
{
  "id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.zerogpu.ai/llms.txt

Use this file to discover all available pages before exploring further.

Soft-delete a file. It is removed from storage immediately and returns 404 on list, retrieve, and download afterward. Deleting an input file does not stop an active batch. Full reference: Files API.

Authorizations

x-api-key
string
header
required
x-project-id
string
header
required

Path Parameters

file_id
string
required

Response

File deleted

id
string
object
enum<string>
Available options:
file
deleted
enum<boolean>
Available options:
true