# Run the retention schedule now

`POST /analytics/site/retention/run` · Rivier · analytics

Run the retention schedule now: remove what has outlived it and record the evidence.

- Scope: analytics:write
- Graphql: Mutation.analyticsSiteRetentionRun
- Sdk: analytics.siteRetention.run
- Cli: analytics site retention run

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "dryRun": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}
```

## 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 POST 'https://api.rivier.ai/analytics/site/retention/run' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "dryRun": false
}'
```
