# Remove a teammate from the current workspace.

> Hosted dashboard only.
> https://koi.dog/docs/api/workspace-team/remove-workspace-teammate/

`DELETE /api/v1/workspace-team/members/{id}` · Key: `session only`

The owner may remove anyone but themselves; an admin may remove a member. The person's sessions, CLI sign-ins and the API keys they made stop working in this workspace at once (each use reads the membership). Use a Clerk session token at `https://app.koi.dog/api/v1` with `Origin: https://app.koi.dog`.

## Path parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The workspace teammate's id. |

## Headers.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | `string` | no | Retry the same request with the same key. [Retry rules](https://koi.dog/docs/api/#retries). |

## Response.

200 OK · JSON object

## Request.

```sh
# Requires a Clerk dashboard session token.
curl -X DELETE "https://app.koi.dog/api/v1/workspace-team/members/$ID" \
    -H "Authorization: Bearer $KOIDOG_CLERK_SESSION" \
    -H "Origin: https://app.koi.dog"
```

```js
// Requires a Clerk dashboard session token.
const res = await fetch(`https://app.koi.dog/api/v1/workspace-team/members/${process.env.ID}`, {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_CLERK_SESSION}`,
    Origin: "https://app.koi.dog",
  },
});
console.log(await res.json());
```

```python
import os

import requests

# Requires a Clerk dashboard session token.
r = requests.delete(
    f"https://app.koi.dog/api/v1/workspace-team/members/{os.environ['ID']}",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_CLERK_SESSION']}",
        "Origin": "https://app.koi.dog",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "ok": true
}
```
