delete
https://api-v2.pandavideo.com.br/subtitles/
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
DELETE /subtitles/{video_id}
{video_id}Remove a subtitle track from a video. This deletes the subtitle file(s) from storage and removes the entry from the video configuration. The change is reflected in the player after cache invalidation.
AuthorizationSend your API token in the
Authorizationheader. For sub-accounts, use the parent account's API token.
HTTP Method & Path
DELETE /subtitles/{video_id}
Base URL: https://api-v2.pandavideo.com.br
Authentication Requirements
| Security Scheme | Header | Note |
|---|---|---|
| apiKey | Authorization | Your API token (no "Bearer" prefix) |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Your API token |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| video_id | string (uuid) | Yes | ID of the video that owns the subtitle. |
Request Body
Content-Type: application/json
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| srclang | string | Yes | Language code of the subtitle track to remove (e.g. pt-BR, en). Must match an existing track. |
Response
Success Response (200)
Returns the video's remaining subtitle list.
{
"response": [
{ "srclang": "en", "label": "English", "hidden": false, "is_uploaded": true }
]
}
Both the subtitle file ({srclang}.vtt) and its ellipsis variant ({srclang}_ellipsis.vtt) are removed from storage.
Error Responses
- 400 Bad Request —
srclangmissing or invalid. - 401 Unauthorized — Missing or invalid API token.
- 403 Forbidden — Failed to delete the subtitle file from storage.
- 404 Not Found — Video not found.
- 500 Internal Server Error — Unexpected server error.
Example Usage
cURL
curl --request DELETE \
--url https://api-v2.pandavideo.com.br/subtitles/{video_id} \
--header 'Authorization: <your_api_key>' \
--header 'Content-Type: application/json' \
--data '{"srclang":"pt-BR"}'