# クラウド側プロファイルキャッシュを消去

ブラウザープロファイルのクラウド側キャッシュを消去します。
- **前提条件**：`envId` または `uniqueId` でプロファイルを指定し、キャッシュ種別を少なくとも 1 つ選び、プロファイルが移管中でないこと。ローカルクライアントのキャッシュは変更されません。
- **副作用**：一般種別を消去すると、クラウド上の LocalStorage、IndexedDB、拡張機能データが削除され、プロファイルの拡張機能の紐付けが解除され、**プロファイルの暗号化タイプがリセットされます**。Cookie を消去すると Cookie の暗号化タイプがリセットされます。いずれの変更も永続化されるため、暗号化されたプロファイルは消去した種別について非暗号化になります。
- **完了シグナル**：同期的です — クラウドストレージサービスがレスポンス前に受理して返しています。ポーリング用のタスク ID はありません。

文書化されたビジネスエラー: `19039`, `19149`。 各コードの意味は [Error Codes](../Getting%20Started/error-codes.md) を参照してください。どの操作でも共通コードが返る場合があります。

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

## Security:

  - `OpenApiBearer` (unknown)
    http bearer JWT

## Request fields (application/json):

  - `envId` (string)
    プロファイル ID。これか `uniqueId` のいずれかを指定します。
    Example: 1800000000000001

  - `uniqueId` (integer)
    プロファイル連番。これか `envId` のいずれかを指定します。
    Example: 1001

  - `others` (boolean)
    その他のクラウドキャッシュデータを消去するかどうか。
    Example: true

  - `cookie` (boolean)
    クラウド上の Cookie を消去するかどうか。
    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

