> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# アクセス取消

> 共有リストからユーザーを外す。即時反映。

**`DELETE`** `https://api-datahub.octoparse.com/v1/data-apps/{app_id}/grants/{username}`

認証：APIキー必須（`Authorization: Bearer <API Key>`）。App 作者のみ。他者は `404`。

取消は即時反映。読み取り経路は毎リクエスト grant リストを確認。キャッシュ窓はありません。

## リクエスト

### パスパラメータ

<ParamField path="app_id" type="string" required>
  App reference.
</ParamField>

<ParamField path="username" type="string" required>
  取消対象ユーザー名。
</ParamField>

### リクエスト例

```bash theme={null}
curl -X DELETE \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  "https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/grants/dave"
```

## レスポンス

### 200 成功

```json theme={null}
{
  "data": {
    "ok": true
  }
}
```

ペイロードは `data` に包まれます。フィールド:

<ResponseField name="ok" type="boolean">
  Always `true`.
</ResponseField>

### エラー

| HTTP | `code`         | `category`  | Description    |
| ---- | -------------- | ----------- | -------------- |
| 401  | `unauthorized` | `forbidden` | API キー欠落または無効。 |

エラー応答は `{"error": {code, category, message, retryable}}` です。<a href="/docs/jp/datahub/api/reference/introduction#errors">エラー</a> を参照。

## クライアントライブラリ

Python / JavaScript SDK はまだこのエンドポイントをラップしていません。REST を直接呼び出してください。
