# Revoke a grant

Revokes one of the caller’s grants along with everything bound to it: its API keys, its OAuth access and refresh tokens, its handoff links, and its elevation leases. The holder is emailed. Requires a browser session. A grant belonging to anyone else answers 404.

## DELETE `/v1/me/grants/{grantId}`

### Authorization

`Authorization` Bearer token · header required

\`Authorization: Bearer <token>\` with an API key (\`sfa\_\` prefix), an OAuth access token, a session token, or a Space machine credential (\`sfm\_\` prefix).

### Path parameters

`grantId` string required

min length 1

### Responses

204 The grant and every credential bound to it are revoked.

## Try it

### Server

Base URL https://api.spacefast.com

Custom base URL Overrides the selected server when set.

### Authorization

Bearer token Remember on this device Include my values in samples

### Parameters

`grantId` path *

### Send

### Request

#### cURL

```bash
curl -X DELETE "https://api.spacefast.com/v1/me/grants/string" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

#### JavaScript

```javascript
const response = await fetch("https://api.spacefast.com/v1/me/grants/string", {
  method: "DELETE",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN"
  }
});
```

#### Python

```python
import requests

response = requests.delete(
    "https://api.spacefast.com/v1/me/grants/string",
    headers={
        "Authorization": "Bearer YOUR_TOKEN"
    },
)
```

### Response

204

The grant and every credential bound to it are revoked.
