Skip to main content
DELETE /v1/files/{file_id} Deletes a file permanently. This action cannot be undone.

Path Parameters

ParameterTypeRequiredDescription
file_idstringYesThe ID of the file to use.

Example Request

curl -X DELETE https://api.gravixlayer.com/v1/files/file-abc123def456 \
  -H "Authorization: Bearer $GRAVIXLAYER_API_KEY"

Response

{
  "file_id": "76682d53-b99a-4bf1-9499-ff3fa3c226a7",
  "file_name": "test.txt",
  "message": "file deleted"
}
I