# Remove status page subscriber

Removes an email subscriber from a status page. You can remove the subscriber by ID or by exact email address.

Removing a subscriber creates an unsubscribe record for that email address.

[endpoint]
method = "DELETE"
base_url = "https://uptime.betterstack.com"
path = "/api/v2/status-pages/{status_page_id}/subscribers/{subscriber_id}"

[[path_param]]
name = "status_page_id"
type = "string"
required = true
description = "The ID of your status page."

[[path_param]]
name = "subscriber_id"
type = "string"
required = true
description = "The ID of the subscriber."

[[header]]
name = "Authorization"
type = "string"
required = true
description = "Bearer `$TOKEN`"
[/endpoint]

[endpoint]
method = "DELETE"
base_url = "https://uptime.betterstack.com"
path = "/api/v2/status-pages/{status_page_id}/subscribers?email={email}"

[[path_param]]
name = "status_page_id"
type = "string"
required = true
description = "The ID of your status page."

[[query_param]]
name = "email"
type = "string"
required = true
description = "The exact subscriber email address."

[[header]]
name = "Authorization"
type = "string"
required = true
description = "Bearer `$TOKEN`"
[/endpoint]

[responses]
[[response]]
status = 204
description = "The subscriber was removed."
[/responses]

#### Example cURL

```bash
[label Remove by ID]
curl --request DELETE \
  --url https://uptime.betterstack.com/api/v2/status-pages/987654321/subscribers/123456789 \
  --header "Authorization: Bearer $TOKEN"
```

```bash
[label Remove by email]
curl --request DELETE \
  --url "https://uptime.betterstack.com/api/v2/status-pages/987654321/subscribers?email=customer@example.com" \
  --header "Authorization: Bearer $TOKEN"
```
