Use the interface to batch delete the recorded files saved in USB flash drive, SD card (device internal storage) or NAS.
HTTP Request
POST http://ip/usapi?method=del-media-files
Parameter |
Description |
method |
del-media-files |
Content-Type: application/json;charset=UTF-8
Request Payload
{
disk-type: 1, // storage device type. 0 indicates USB flash drive. 1 indicates SD card. 2 indicates NAS.
media-files: ["VID_6_14.mp4"] // array of file name to be deleted
}
Response Body
{
"result": 0
}
Item |
Description |
result |
0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |