Skip to main content
POST
/
video
/
{video_id}
/
index
/
delete
Delete video index
curl --request POST \
  --url https://api.videodb.io/video/{video_id}/index/delete \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "index_type": "all",
  "model_name": "gpt4-v"
}
'
{
  "success": true,
  "message": "Operation successful"
}
Delete an existing index from a video. You can delete spoken word indexes, scene indexes, or all indexes at once.
  • index_type can be spoken_word, scene, or all
  • This operation is irreversible; you will need to re-index the video to search it again
  • Use model_name to target a specific model’s index when deleting scene indexes

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Path Parameters

video_id
string
required
Example:

"m-12345"

Body

application/json
index_type
enum<string>
default:all
Available options:
spoken_word,
scene,
all
Example:

"all"

model_name
string
default:gpt4-v
Example:

"gpt4-v"

Response

200 - application/json

Index deleted

success
boolean
Example:

true

message
string
Example:

"Operation successful"