DELETE
/
file
/
{file_id}
/
delete
Delete a file
curl --request DELETE \
  --url https://api.vidnavigator.com/v1/file/{file_id}/delete \
  --header 'X-API-Key: <api-key>'
{
  "status": "success",
  "data": {
    "file_id": "<string>",
    "file_name": "<string>",
    "message": "<string>"
  }
}
Delete a file and all associated data from storage.

Path Parameter

  • file_id (string, required)

Example Request

cURL
curl -X DELETE "https://api.vidnavigator.com/v1/file/file_abc123/delete" \
  -H "X-API-Key: YOUR_API_KEY"

Success Response (200 OK)

Returns a confirmation that the file and its associated data have been successfully deleted.
{
  "status": "success",
  "data": {
    "file_id": "file_abc123",
    "file_name": "video_to_delete.mp4",
    "message": "File deleted successfully"
  }
}

Authorizations

X-API-Key
string
header
required

API key authentication. Include your VidNavigator API key in the X-API-Key header.

Path Parameters

file_id
string
required

The ID of the file to delete

Response

200
application/json

File deleted successfully

The response is of type object.