del-media-files
Added in V1.3
Use the interface to batch delete the recorded files saved in USB flash or SD card(device internal storage).
HTTP Request
POST http://ip/usapi?method=del-media-files
Parameter | Description |
---|---|
method | del-media-files |
Request Header
Content-Type: application/json;charset=UTF-8
Request Payload
{
disk-type: 1, // storage device type. 0 indicates USB flash drive. 1 indicates SD card.
media-files: ["VID_6_14.mp4"] // array of file name to delete
}
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. |