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

# Delete credentials

> Clear some or all credentials for an end-user.

## Path parameters

<ParamField path="endUserId" type="string" required>
  The end-user identifier.
</ParamField>

## Request body

<ParamField body="fields" type="string[]">
  Specific credential fields to clear. Omit or pass an empty array to wipe every credential for this end-user.

  Valid field names match the [set endpoint](/api-reference/end-users/set-credentials): `twitterAuthToken`, `twitterCt0`, `redditSession`, `tiktokSessionId`, `tiktokCsrfToken`, `instagramSessionId`, `instagramCsrfToken`, `instagramDsUserId`.
</ParamField>

## Response — `200 OK`

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

## Example

<CodeGroup>
  ```bash Clear all theme={null}
  curl "$API_BASE/end-users/alice/credentials" -X DELETE \
    -H "Authorization: Bearer $API_KEY"
  ```

  ```bash Clear specific fields theme={null}
  curl "$API_BASE/end-users/alice/credentials" -X DELETE \
    -H "Authorization: Bearer $API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"fields": ["twitterAuthToken", "twitterCt0"]}'
  ```

  ```python Python theme={null}
  # Clear everything
  client.end_users("alice").credentials.delete()

  # Or a subset
  client.end_users("alice").credentials.delete(
      fields=["twitter_auth_token", "twitter_ct0"],
  )
  ```

  ```typescript TypeScript theme={null}
  // Clear everything
  await client.endUsers("alice").credentials.delete();

  // Or a subset
  await client.endUsers("alice").credentials.delete(
    ["twitterAuthToken", "twitterCt0"],
  );
  ```
</CodeGroup>

## Notes

* **Irreversible.** Once cleared, the credentials are gone. To re-enable that platform for the end-user, call [`PUT .../credentials`](/api-reference/end-users/set-credentials) again with fresh values.
* **The end-user record itself is not deleted.** Only the credential fields inside it. The end-user's task and session history remain accessible.
* **Per-platform isolation.** Passing `fields: ["twitterAuthToken", "twitterCt0"]` clears Twitter only; TikTok, Instagram, etc. remain configured.

## Errors

| Code  | Meaning                                    |
| ----- | ------------------------------------------ |
| `400` | Invalid JSON body, `endUserId` > 256 chars |
| `401` | Missing `Authorization` header             |
| `403` | Revoked API key                            |
