# Second step

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

Second step: present the token. The site's stored data and backups are removed; the export stays 30 days.

- Scope: hosting:admin
- Graphql: Mutation.hostingDataEraseConfirm
- Sdk: hosting.data.eraseConfirm
- Cli: hosting data erase confirm
- Events: hosting.erased

## Parameters

- `id` (path, required), string
- `token` (query, required), 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/hosting/sites/{id}/data/erase' \
  -H 'Authorization: Bearer $KEY'
```
