# First step of deleting my data

`POST /hosting/sites/{id}/data/erase` · Rivier · hosting

First step of deleting my data: makes an export and answers a token good for 15 minutes. Nothing is removed.

- Scope: hosting:write
- Mcp: rivier_hosting_erase_request
- Graphql: Mutation.hostingDataEraseRequest
- Sdk: hosting.data.eraseRequest
- Cli: hosting data erase request
- Events: hosting.erase.requested

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "scope": {
      "type": "string",
      "enum": [
        "data",
        "site"
      ]
    }
  },
  "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/hosting/sites/{id}/data/erase' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "scope": "data"
}'
```
