Skip to main content
DELETE
/
v1
/
files
/
{fileId}
Delete a file
curl --request DELETE \
  --url https://api.infery.ai/v1/files/{fileId} \
  --header 'Authorization: <api-key>'
{
  "id": "file_1hR9xTPZqK4mVLc2nJ7fY5wB",
  "object": "file",
  "deleted": true
}
curl -X DELETE https://api.infery.ai/v1/files/file_abc123... \
  -H "Authorization: Bearer $INFERY_API_KEY"
Delete is soft in DB + hard in GCS — bytes are unrecoverable immediately. The id remains in audit logs but GET /v1/files/{fileId} will return 404 afterwards.

Authorizations

Authorization
string
header
required

API key in format: Bearer inf_***

Path Parameters

fileId
string
required

Response

Deletion result. Delete is soft in DB + hard in GCS — bytes are unrecoverable immediately.

id
string
Example:

"file_1hR9xTPZqK4mVLc2nJ7fY5wB"

object
string
Example:

"file"

deleted
boolean
Example:

true