# Cancel a prepared restore and discard the prepared copy

`DELETE /hosting/sites/{id}/data/restore/{rid}` · Rivier · hosting

Cancel a prepared restore and discard the prepared copy.

- Scope: hosting:admin
- Graphql: Mutation.hostingDataRestoreCancel
- Sdk: hosting.data.restoreCancel
- Cli: hosting data restore cancel

## Parameters

- `id` (path, required), string
- `rid` (path, 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/restore/{rid}' \
  -H 'Authorization: Bearer $KEY'
```
