接口说明
删除存储在服务器上的指定媒体文件(如录像文件)。执行删除操作前,请先调用录像查询接口获取文件信息,本接口的请求参数主要来源于录像查询接口的返回结果。
数据权限说明
只能操作登录账号已有权限的设备
API地址
https://v7.cmsv8.com/StandardApiAction_delMedia.action?jsession=66d754dd7f41473dbd2&devIdno=013300000001&fileLocation=2&svrId=7&year=2025&mon=9&day=23&beg=57985&filePath=E:/gStorage/RECORD_FILE/013300000001/2025-09-23/0_0_0_579851_00013300000001250923160625000200.mp4&fileSize=386747&fileOffSet=0
请求参数
| 参数名称 | 参数类型 | 必须 | 示例 | 参数含义 |
|---|---|---|---|---|
| jsession | string | 是 | 66d754dd7f41473dbd2 | 会话号 |
| devIdno | string | 是 | 013300000001 | 设备号 |
| fileLocation | number | 是 | 2 | 文件位置。取录像查询接口返回的loc |
| svrId | number | 是 | 7 | 服务器ID。取录像查询接口返回的svr |
| year | number | 是 | 2025 | 年。取录像查询接口返回的year+2000 |
| mon | number | 是 | 9 | 月。取录像查询接口返回的mon |
| day | number | 是 | 23 | 日。取录像查询接口返回的day |
| beg | number | 是 | 57985 | 文件开始时间 单位秒。取录像查询接口返回的beg |
| filePath | string | 是 | E:/gStorage/RECORD_FILE/013300000001/2025-09-23/0_0_0_579851_00013300000001250923160625000200.mp4 | 文件路径。取录像查询接口返回的file |
| fileSize | number | 是 | 386747 | 文件大小(单位byte)。取录像查询接口返回的len |
| fileOffSet | number | 是 | 0 | 文件偏移位置。取录像查询接口返回的off |
返回参数
| 参数名称 | 参数类型 | 参数含义 | ||
|---|---|---|---|---|
| result | number | 接口状态码,0为正常 其他为异常(详情参见:[错误码说明](/helpCenter/doc/index.html?isStudy=1&pageType=3&docId=1321&type=1 "错误码说明")) | ||
返回示例
{
"result": 0
}