
# Delete a subscriber

Remove a subscriber from the list.

```sh
DELETE https://sitepaste.com/api/v1/public/sites/{siteId}/newsletter-subscribers/{subscriberId}
```

Requires the `data` scope.

## Usage

```bash
curl -X DELETE "https://sitepaste.com/api/v1/public/sites/default/newsletter-subscribers/n8qjx2v7mz4r" \
  -H "Authorization: Bearer $TOKEN"
```

## Authorizations

| Header | Type | Required | Description |
|--------|------|----------|-------------|
| Authorization | string | Yes | Bearer token (`Authorization: Bearer sp_...`). Created in the dashboard under Account > Tokens. See [authentication](/api/authentication). |



## Response

204 No Content on success.

## Errors

| Code | Meaning |
|------|---------|
| 400 | `{subscriberId}` is malformed |
| 404 | No subscriber with that ID on the site |