> ## 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 リストを確認。キャッシュ窓はありません。

## リクエスト

### パスパラメータ

**app\_id** `string` *required*

App の参照。

**username** `string` *required*

取消対象ユーザー名。

### リクエスト例

```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` に包まれます。フィールド:

**ok** `boolean`

常に `true`。

### エラー

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

エラー応答は `{"error": {code, category, message, retryable}}` です。[エラー](https://www.octoparse.com/docs/jp/datahub/api/reference/introduction.md#errors) を参照。

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

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.