# Remove Amazon SNS integration

Permanently deletes an existing Amazon SNS integration.

[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/amazon-sns/{amazon_sns_integration_id}"
method = "DELETE"

[[path_param]]
name = "amazon_sns_integration_id"
description = "The ID of the Amazon SNS integration you want to delete"
required = true
type = "string"

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

[responses]
[[response]]
status = 204
description = '''Returns empty body'''
body = ''''''

[/responses]

#### Example cURL

```shell
[label Example]
curl --request DELETE \
  --url https://uptime.betterstack.com/api/v2/amazon-sns/5 \
  --header "Authorization: Bearer $TOKEN"
```

[info]
#### Still subscribed on the AWS side?
Deleting the integration stops Better Stack from accepting the topic's notifications, but the subscription itself stays in Amazon SNS. Delete it in the [AWS SNS console](https://console.aws.amazon.com/sns/v3/home#/subscriptions ";_blank") so the topic stops publishing to a dead endpoint.
[/info]
