# Take back what you handed out: every app, or one with ?appId

`DELETE /oauth/grants` · Rivier · keys

Take back what you handed out: every app, or one with ?appId.

- Scope: keys:write
- Sdk: keys.grant.revoke
- Cli: keys grant revoke

## Parameters

- `appId` (query), string

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X DELETE 'https://api.rivier.ai/oauth/grants' \
  -H 'Authorization: Bearer $KEY'
```
