Skip to content

Clean Environment Cloud Cache

Request

Clear the cloud-side cache of a browser profile.

  • Preconditions: identify the profile by envId or uniqueId, select at least one cache class, and the profile must not be mid-transfer. Local client cache is untouched.
  • Effect: clearing the general class removes cloud LocalStorage, IndexedDB and extension data, unbinds the profile's extensions, and resets the profile encryption type; clearing cookies resets the cookie encryption type. Both changes are persisted, so an encrypted profile becomes unencrypted for the cleared class.
  • Completion: synchronous — the cloud storage service has accepted and returned before the response. There is no task id to poll.

Documented business errors: 19039, 19149. See Error Codes for what each code means. Any operation can additionally return the common codes.

Headers
Accept-Languagestring

Default request language

Default:"zh-CN"
Example:zh-CN
Bodyapplication/jsonrequired
cookieboolean

Whether to clear cookies

envIdstring

Environment ID, must fill one with serial ID

othersboolean

Whether to clear other cache

uniqueIdinteger

Serial ID, must fill one with environment ID

curl -i -X POST \
  http://127.0.0.1:40000/api/env/cache/cleanCloud \
  -H 'Accept-Language: zh-CN' \
  -H 'Content-Type: application/json' \
  -d '{
    "cookie": true,
    "envId": "1661515884160372",
    "others": true
  }'

Responses

Success. data is always null for this operation; the outcome is carried by code.

Headers
any
Bodyapplication/json
codeinteger
msgstring or null
datanull
requestIdstring
Response
{ "code": 0, "msg": null, "data": null, "requestId": "ca3b32431c264b6c94187fde14d23229" }