Skip to Content

Delete File

Delete a file and its associated data from the database and cloud storage

DELETE
/file/{file_id}/delete

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"
  }
}

API reference

Authorization

ApiKeyAuth
headerX-API-Key<token>

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

Path Parameters

file_id*string

The ID of the file to delete

Response Body

File deleted successfully

application/json
  1. response
status?"success"
Value in"success"
data?
Example Request
curl -X DELETE 'https://api.vidnavigator.com/v1/file/string/delete'
Example Response
{  "status": "success",  "data": {    "file_id": "string",    "file_name": "string",    "message": "string"  }}

On this page