# Cancel every link already given out for a preview

`DELETE /hosting/sites/{id}/deployments/{dep}/share` · Rivier · hosting

Cancel every link already given out for a preview.

- Scope: hosting:admin
- Graphql: Mutation.hostingPreviewRevoke
- Sdk: hosting.preview.revoke
- Cli: hosting preview revoke

## Parameters

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