Skip to content

Cache

Clear cloud-side profile cache.

Clear cloud profile 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.

Security
OpenApiBearer
Bodyapplication/jsonrequired
envIdstring(EnvironmentId)^[1-9]\d*$

Profile ID. Provide this or uniqueId.

Example:"1800000000000001"
uniqueIdinteger, (int32), >= 1

Profile sequence number. Provide this or envId.

Example:1001
othersboolean

Whether to clear other cloud cache data.

Example:true
cookieboolean

Whether to clear cloud cookies.

Example:false
curl -i -X POST \
  https://api.morelogin.com/env/cache/cleanCloud \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "envId": "1800000000000001",
    "others": true,
    "cookie": false
  }'

Responses

Success

Bodyapplication/json
codeintegerrequired

Return result code. 0 means success; other codes indicate exceptions.

Example:0
msgstring or nullrequired

Error message. Usually null on success.

Example:null
requestIdstring

Operation request ID. This field may be present when the request passes through the API gateway.

Example:"1d4f3ea968664593860b94b35d4ebf5e"
datanull
Example:null
Response
{ "code": 0, "msg": null, "requestId": "1d4f3ea968664593860b94b35d4ebf5e", "data": null }