请升级至最新的补丁版本后使用。
基本信息
POST /api/v2/browser-profile/delete-cache
接口描述:清除指定浏览器环境的本地缓存。为了数据安全,请确保在该浏览器环境未打开时使用该接口。若磁盘空间不足,可使用该接口清除缓存释放空间。
参数说明
Body 非必需参数可以不传递,传参格式为JSON。
参数名称 | 类型 | 必需 | 默认值 | 示例 | 说明 |
profile_id | list | 是 | - | ["h1yynkm","h1yynks","h1yynkd"] | 需要清除缓存的环境ID。 |
type | list | 是 | - | ["local_storage","indexeddb"] | 清除缓存的类型。支持:local_storage,indexeddb,extension_cache,cookie,history,image_file。 |
返回数据
// 执行成功
{
"code":0,
"msg":"success"
}
// 若当前用户存在打开中的浏览器,执行失败
{
"code":-1,
"msg":"There are currently open browsers, please close them before deleting the cache"
}