# Clear cloud profile cache

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](../Getting%20Started/error-codes.md) for what each code means. Any operation can additionally return the common codes.

Endpoint: POST /env/cache/cleanCloud
Version: 2026-09-05
Security: OpenApiBearer

## Security:

  - `OpenApiBearer` (unknown)
    http bearer JWT

## Request fields (application/json):

  - `envId` (string)
    Profile ID. Provide this or `uniqueId`.
    Example: 1800000000000001

  - `uniqueId` (integer)
    Profile sequence number. Provide this or `envId`.
    Example: 1001

  - `others` (boolean)
    Whether to clear other cloud cache data.
    Example: true

  - `cookie` (boolean)
    Whether to clear cloud cookies.
    Example: false

## Response 200:

  - `200` (unknown)
    Success

## Response 200 fields (application/json):

  - `code` (integer, required)
    Return result code. `0` means success; other codes indicate exceptions.
    Example: 0

  - `msg` (string | null, required)
    Error message. Usually `null` on success.
    Example: null

  - `requestId` (string)
    Operation request ID. This field may be present when the request passes through the API gateway.
    Example: 1d4f3ea968664593860b94b35d4ebf5e

  - `data` (null)
    Example: null

