> ## 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.

# Revoke access

> Remove a user from the share list. Takes effect immediately.

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

Authentication: API key required (`Authorization: Bearer <API Key>`). App author only; others get `404`.

Revocation takes effect immediately: read paths check the grant list on every request. There is no cache window.

## Request

### Path parameters

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

<ParamField path="username" type="string" required>
  Username of the user to revoke.
</ParamField>

### Example request

```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"
```

## Response

### 200 success

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

The payload is wrapped in `data`. Fields:

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

### Errors

| HTTP | `code`         | `category`  | Description                 |
| ---- | -------------- | ----------- | --------------------------- |
| 401  | `unauthorized` | `forbidden` | Missing or invalid API key. |

Error responses use `{"error": {code, category, message, retryable}}`. See <a href="/docs/en/datahub/api/reference/introduction#errors">Errors</a>.

## Client libraries

The Python and JavaScript SDKs do not wrap this endpoint yet. Call REST directly.
