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:
curl -X DELETE "https://web.vxgdemo.vxgdemo.cloud-vms.com:443/api/v4/storage/records/?start=2023-06-15T09%3A00%3A00&end=2023-06-15T10%3A00%3A00"
-H "accept: application/json"
-H "Authorization: Acc ACCESS_TOKEN"
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:
curl -X GET "https://web.vxgdemo.vxgdemo.cloud-vms.com/api/v4/storage/images/?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-17T01:04:42.179936",
"limit": 20,
"next": null,
"offset": 0,
"previous": null,
"total_count": 5
},
"objects": [
{
"height": 720,
"id": 4985609543,
"origin": [
"recording_thumbnail"
],
"size": 43635,
"time": "2023-06-15T09:00:50",
"url": "https://skyvr-av-auth2-rel.s3.amazonaws.com/u17/m330040/c329599/20230615/090050.000000_primary_d62.jpg?AWSAccessKeyId=ASIAWEOIJQJ57XBONLMW&Expires=1686963882&x-amz-security-token=IQoJb3JpZ2luX2VjEPP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJGMEQCIGDKvW79tGpGAaTdmcTmtZKWEJOTaJWx9iZnL8m8fil1AiBju1l9rKctYdP%2BksrFE6TOocpHIPHxql1hxTZlcij6vSqyBQhMEAAaDDQyMTg2MzcxOTU0NyIMvt4Oaa7GkQlaUEmMKo8FlSs1sUUpKwS%2FGT2MJL0lMghFq7lwwFg2rH8ps3WuPKTa3hI7p8qRoEZAs3vH%2B2OZIiqMXOgKvOtRUfFNSfBgUISE1LooaV3cvXKD3xzBVxPPgAdS0bTpqo%2FACop1z%2FuLKu%2Fi2oqhq187jcxUWtxETZgptbiDCU117dizvmBIqwXK6f6P99BB7y5uYRKVmPi8UjL1qwTYKOnLbqH6yIY3qNJ%2BeVsgLDT6S9989FnDE2cgiVE%2Bb1ppclwZIy8iqU2eDG4m8iU%2FkuuYq4SgphVgONqn6NaLsriF2oM1ad6V%2BuusOVflHRxn7uCCEE%2B3vacYsXst1NFdUHO4x5RD8Jfh56e34RBPcV5X49EWtMqhj1mUl%2BKj3du53mzq2bMVosqiaQbOQrr7yrA6ydOD74sOPvWYhohb2ipyT8WbiKf9CNH7i%2BHpWRXnlzsM4WqwReVSJh%2FG2QgEnbjnK%2B9Rm%2FnRVmxuAgq6Bqdp5RE3pE%2FnWQx2Y5%2FT0Ebjzc5pPGlUgqqFCNHuLVQkhERBNFHcU2siI8W6SBYLrQWfse7qeACRIA9wZmy6X0%2BsGImvfcn91Txje05az%2BVYYNfMww6C62JMv1KX8ES5vzJLGZNHLutviF7tp5b%2FNu704B7zS5lX1wBCWwDiWoyUA4BxMM3bt%2Fnd9XSjp4yQjvhtNpqu3rqka7tatEEWC6oE8gc3umvh0Rfm4jypWuHK2TeU4BxDwy%2FDnqG60zbvRxhKkUFM81ezwALyuv54OcojuoeB%2B1LFiSvfFJ8%2BlZVWXA3HsLTtJEmREmiBOlfhQbwAIgv5DcD415aEKiaOClnLV1G0XLVLREeqB9yAm%2FefWVtBtpgVsEpRQBhJ5zNW8KrrTGBMs2Q5QDDX17KkBjqyAQtq%2F6wkMdXRoMg8TSYhyAAZMNKGaAW6XSw6RU0O9cDLaErQpRks2vz2%2BXrqVtQLfbELxrQxSsaiPUw6suCD%2FMmyWwwcw%2Fxn0eH40TiwpOSSNAT7iKRpZh6C5%2B0B9jZ8nXxnkSOD4PXa%2F%2F4IvHRhahF5wa2yOjXwezjMb3BvjrcytklAcvjN4LyJ0riaMywXH12gIhJtzisk6Y7Ib2B7yu5ccgKp05995X%2FR7X8WaMvj8Xg%3D&Signature=BuT0bdgOlvc1bKXd75G5cPf3Chs%3D",
"width": 1280
},
...
To delete image 4985609543
:
curl -X DELETE "https://web.vxgdemo.vxgdemo.cloud-vms.com/api/v4/storage/images/4985609543/"
-H "accept: application/json"
-H "Authorization: Acc ACCESS_TOKEN"
And here is an example command that deletes all images from 9 am to 10 am for a camera:
curl -X DELETE "https://web.vxgdemo.vxgdemo.cloud-vms.com:443/api/v4/storage/images/?start=2023-06-15T09%3A00%3A00&end=2023-06-15T10%3A00%3A00"
-H "accept: application/json"
-H "Authorization: Acc ACCESS_TOKEN"
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:
curl -X GET "https://web.vxgdemo.vxgdemo.cloud-vms.com/api/v4/clips/?start=2023-06-15T09%3A00%3A00&end=2023-06-15T10%3A00%3A00"
-H "accept: application/json"
-H "Authorization: Acc ACCESS_TOKEN"
Response:
{
"meta": {
"expire": "2023-06-17T01:04:42.503736",
"limit": 20,
"next": null,
"offset": 0,
"previous": null,
"total_count": 1
},
"objects": [
{
"access": [
"all"
],
"created": "2023-06-16T19:14:25.951274",
"delete_at": null,
"duration": 850,
"end": "2023-06-15T09:15:00",
"event_time": null,
"group": "Clips",
"id": 48367790,
"size": "19348910",
"start": "2023-06-15T09:00:00",
"status": "done",
"thumb": {
"height": 720,
"size": 43635,
"time": "2023-06-15T09:00:00",
"url": "https://skyvr-av-auth2-rel.s3.amazonaws.com/u17/m330040/c329599/clips/48367790.jpg?AWSAccessKeyId=ASIAWEOIJQJ57XBONLMW&Expires=1686963882&x-amz-security-token=IQoJb3JpZ2luX2VjEPP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJGMEQCIGDKvW79tGpGAaTdmcTmtZKWEJOTaJWx9iZnL8m8fil1AiBju1l9rKctYdP%2BksrFE6TOocpHIPHxql1hxTZlcij6vSqyBQhMEAAaDDQyMTg2MzcxOTU0NyIMvt4Oaa7GkQlaUEmMKo8FlSs1sUUpKwS%2FGT2MJL0lMghFq7lwwFg2rH8ps3WuPKTa3hI7p8qRoEZAs3vH%2B2OZIiqMXOgKvOtRUfFNSfBgUISE1LooaV3cvXKD3xzBVxPPgAdS0bTpqo%2FACop1z%2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ZnMuL5GiQVMueE%3D",
"width": 1280
},
"title": "Intro",
"url": "https://skyvr-av-auth2-rel.s3.amazonaws.com/u17/m330040/c329599/clips/48367790_d850.mp4?response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27Intro.mp4&AWSAccessKeyId=ASIAWEOIJQJ57XBONLMW&Expires=1686963882&x-amz-security-token=IQoJb3JpZ2luX2VjEPP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJGMEQCIGDKvW79tGpGAaTdmcTmtZKWEJOTaJWx9iZnL8m8fil1AiBju1l9rKctYdP%2BksrFE6TOocpHIPHxql1hxTZlcij6vSqyBQhMEAAaDDQyMTg2MzcxOTU0NyIMvt4Oaa7GkQlaUEmMKo8FlSs1sUUpKwS%2FGT2MJL0lMghFq7lwwFg2rH8ps3WuPKTa3hI7p8qRoEZAs3vH%2B2OZIiqMXOgKvOtRUfFNSfBgUISE1LooaV3cvXKD3xzBVxPPgAdS0bTpqo%2FACop1z%2FuLKu%2Fi2oqhq187jcxUWtxETZgptbiDCU117dizvmBIqwXK6f6P99BB7y5uYRKVmPi8UjL1qwTYKOnLbqH6yIY3qNJ%2BeVsgLDT6S9989FnDE2cgiVE%2Bb1ppclwZIy8iqU2eDG4m8iU%2FkuuYq4SgphVgONqn6NaLsriF2oM1ad6V%2BuusOVflHRxn7uCCEE%2B3vacYsXst1NFdUHO4x5RD8Jfh56e34RBPcV5X49EWtMqhj1mUl%2BKj3du53mzq2bMVosqiaQbOQrr7yrA6ydOD74sOPvWYhohb2ipyT8WbiKf9CNH7i%2BHpWRXnlzsM4WqwReVSJh%2FG2QgEnbjnK%2B9Rm%2FnRVmxuAgq6Bqdp5RE3pE%2FnWQx2Y5%2FT0Ebjzc5pPGlUgqqFCNHuLVQkhERBNFHcU2siI8W6SBYLrQWfse7qeACRIA9wZmy6X0%2BsGImvfcn91Txje05az%2BVYYNfMww6C62JMv1KX8ES5vzJLGZNHLutviF7tp5b%2FNu704B7zS5lX1wBCWwDiWoyUA4BxMM3bt%2Fnd9XSjp4yQjvhtNpqu3rqka7tatEEWC6oE8gc3umvh0Rfm4jypWuHK2TeU4BxDwy%2FDnqG60zbvRxhKkUFM81ezwALyuv54OcojuoeB%2B1LFiSvfFJ8%2BlZVWXA3HsLTtJEmREmiBOlfhQbwAIgv5DcD415aEKiaOClnLV1G0XLVLREeqB9yAm%2FefWVtBtpgVsEpRQBhJ5zNW8KrrTGBMs2Q5QDDX17KkBjqyAQtq%2F6wkMdXRoMg8TSYhyAAZMNKGaAW6XSw6RU0O9cDLaErQpRks2vz2%2BXrqVtQLfbELxrQxSsaiPUw6suCD%2FMmyWwwcw%2Fxn0eH40TiwpOSSNAT7iKRpZh6C5%2B0B9jZ8nXxnkSOD4PXa%2F%2F4IvHRhahF5wa2yOjXwezjMb3BvjrcytklAcvjN4LyJ0riaMywXH12gIhJtzisk6Y7Ib2B7yu5ccgKp05995X%2FR7X8WaMvj8Xg%3D&Signature=%2FRBcU8k2gP%2FFmbu10lpQpmfpAmg%3D",
"wait_for_data": false
}
]
}
To delete clip 48367790
:
curl -X DELETE "https://web.vxgdemo.vxgdemo.cloud-vms.com/api/v4/clips/48367790/"
-H "accept: application/json"
-H "Authorization: Acc ACCESS_TOKEN"
And here is an example command that deletes all clips from 9 am to 10 am for a camera:
curl -X DELETE "https://web.vxgdemo.vxgdemo.cloud-vms.com:443/api/v4/clips/?start=2023-06-15T09%3A00%3A00&end=2023-06-15T10%3A00%3A00"
-H "accept: application/json"
-H "Authorization: Acc ACCESS_TOKEN"