How to delete Recorded Videos, Clips, and Images

In all examples below, ACCESS_TOKEN should be replaced with an actual access token for a selected channel (camera). Deletion requires the “all” permission access token.

Recorded video

The video is recorded in 1-minute chunks in the storage, so any particular video chunk can be deleted. Also, you can delete all records from the storage in a defined time interval.

To delete a specific record, you need to find its ID first. Here’s an example command returning all records from 9:00 to 9:05 am:

curl -X GET "https://web.vxgdemo.vxgdemo.cloud-vms.com/api/v4/storage/records/?start=2023-06-15T09%3A00%3A00&end=2023-06-15T09%3A05%3A00" -H "accept: application/json" -H "Authorization: Acc ACCESS_TOKEN"

Response:

{ "meta": { "expire": "2023-06-17T00:07:14.046050", "limit": 20, "next": null, "offset": 0, "previous": null, "total_count": 6 }, "objects": [ { "end": "2023-06-15T09:00:50", "id": 4708325145, "size": 952390, "start": "2023-06-15T08:59:50", "url": "https://skyvr-av-auth2-rel.s3.amazonaws.com/u17/m330040/c329599/20230615/085950.000000_primary_d60.mp4?AWSAccessKeyId=ASIAWEOIJQJ5YTSXPV5H&Expires=1686960434&x-amz-security-token=IQoJb3JpZ2luX2VjEPL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQCNb0jR7kvKRUy6JV4cIU8iYBZD4%2BhzM4aVLvULEJuGCwIgJ91PusgC8t%2Fg6f%2BVGSYT5RYojGDbkgEQBaAvlz05QUYqsgUISxAAGgw0MjE4NjM3MTk1NDciDFO2NV7IOZVWM9qruiqPBaCNz21AJiiTKe3IjouDYD1ZQ4lSj9MXXPk%2BuIiOEWmYfx7W4S0pOjYSARLJilW6cwEgUNrCFjgzHn2j7WcArmnz9uQzxpuA7fRX%2BgkYh8E0pnvMAaYk5UYxeJjl%2B%2Fox6gH4YaL0PP4GKs6ionmdFaygrZ2z6x%2FjXQxkIxxWWUQQndTdWDYBrx4XS9gW1cyAnc7H483VCSNzv6q7in6x%2FdW8yjo37MGN%2Bhs%2BCUKzoR8nO2C7tfLRdjGJx9IRWCc7BG4gEO8ibygTuBoZczWod5X89zq%2F5f6mK5Fm2pdGyF2BILymjRzI8UL6J5FMY5TRgUx8%2BrFD8xwHPZe8hgPsCJsB3vxOH%2F%2FuQAIx%2Flfb1bBYPp11W2WZ%2BHgd5i7uIvNWojuEiyOi0ZsaXB7MN3LOZKPHmHogCsWjE5EJ%2FCIkfhvheffSD0O3Aatav%2FsnYuGKaGZVmNxoWy5ud8dQQKDllaONXB1vwoG2RiWbOcB%2B9%2FkrVa7uaIqbVcDqQqgFPdNIgxj039h%2FhH8BLG6Ylia30kWUETg78Edq%2FjedmWQtlOUPwCJd%2B9SZBzZAzenwB7RkZYxuF2rPJaDXaBOiLKNW5%2BgIVJdL%2BfLy7ERvJ0IcbaZ2wkLjSz9oEvfaeEtgA0gUne4lH8JneKPXyKJvmRIBz2QRzm43JyDUlIjFe3y60V4N1NNYuDD12xTP%2F%2BfsQvhto8Bq%2BiqREKAaOC0sZjO58%2FQyys3P7nT%2F2K79rnNXBsu%2BYajPsAob579H8I1PYdq3SgCXRYD3JS%2FjwjplYbo4HQsU1L7L2r09uJjxyAiAAW0fxZsaLjY72q%2FiK0FSnvZslsAUzqqhNuYLQ2y%2FW8tahaf%2Fe%2FKOmFRbdd1TrfpEhnYw3ruypAY6sQGe4LJlfRmiz5TQ6RXdHXMAF3hkj372haqGmK6kw7GiSmxHbgV%2BqyS53x765mECqvenMg2s2gCvIW4b6qn7Osf93eZcj%2FcnVdF5Hq9Yi3iEjc%2BUuuP%2BNl95G%2BWJE1hy5uBkAzHAfNTuqjpkbtv8e1dyyUoXPX%2FMrd8kMDLvAQykgAflVdbyrrJPLzcq7chrWWb%2BJA80%2F6ElzDF%2B3qSw%2BFeMdFGPqoE5eY5H286ok00gh9s%3D&Signature=%2BnA3ib6eV1hHT4wjpUZXc75aANM%3D" }, ...

To delete the record 4708325145:

curl -X DELETE "https://web.vxgdemo.vxgdemo.cloud-vms.com/api/v4/storage/records/4708325145/" -H "accept: application/json" -H "Authorization: Acc ACCESS_TOKEN"

 

And here is an example command that deletes all entries from 9 am to 10 am for a camera:

Images

Similar to the video, images can be deleted one by one, or by the time interval.

To find the image ID from 9:00 to 9:05 am:

Response:

To delete image 4985609543:

 

And here is an example command that deletes all images from 9 am to 10 am for a camera:

Clips

The same with clips - they can be deleted one by one, or by the time interval.

To find the clip ID from 9 to 10 am:

Response:

To delete clip 48367790:

 

And here is an example command that deletes all clips from 9 am to 10 am for a camera: