Skip to main content

Delete Media

You can delete individual media items (videos or images) using their unique IDs. For deleting multiple items at once, see Bulk Operations.

Delete Video

Method: DELETE Endpoint: https://api.xenonflare.com/media/videos/:id

Path Parameters

  • id (required): The unique ID of the video to delete.

Response

{
"success": true,
"message": "Video deleted successfully"
}

Delete Image

Method: DELETE Endpoint: https://api.xenonflare.com/media/images/:id

Path Parameters

  • id (required): The unique ID of the image to delete.

Response

{
"success": true,
"message": "Image deleted successfully"
}

Error Responses

  • 401 Unauthorized: API key is missing or invalid.
  • 404 Not Found: No media found with the provided ID.
  • 500 Server Error: Internal infrastructure error.