Skip to main content
DELETE
/
video
/
{video_id}
/
index
/
scene
/
{scene_index_id}
Delete scene index
curl --request DELETE \
  --url https://api.videodb.io/video/{video_id}/index/scene/{scene_index_id} \
  --header 'x-access-token: <api-key>'
{
  "success": true,
  "message": "Operation successful"
}
Remove a scene index from a video, freeing up resources used by that index.
import videodb

conn = videodb.connect(api_key="your_api_key")
coll = conn.get_collection()
video = coll.get_videos()[0]

# Delete scene index
video.delete_scene_index("scene_index_id")

print("Scene index deleted")
  • Deleting a scene index is irreversible
  • All scene records and visual embeddings are removed
  • You can create a new index to replace it if needed
  • Existing scene collections are not affected by deleting the index

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Path Parameters

video_id
string
required
Example:

"m-12345"

scene_index_id
string
required
Example:

"scene-idx-12345"

Response

200 - application/json

Scene index deleted

success
boolean
Example:

true

message
string
Example:

"Operation successful"