Deleting a push notification channel
- In the management console
, go to the folder containing the notification channel. - In the list of services, select Cloud Notification Service.
- Click
next to the notification channel and select Delete. - In the window that opens, click Delete.
-
If you do not have the AWS CLI yet, install and configure it.
-
Run this command:
aws sns delete-platform-application \ --platform-application-arn <notification_channel_ARN>
Where
--platform-application-arn
is the notification channel ID (ARN).For more information about the
aws sns delete-platform-application
command, see the AWS documentation .
-
If you do not have the AWS SDK for Python (boto3) yet, install and configure it.
-
To delete a push notification channel, use the following code:
response = client.delete_platform_application( PlatformApplicationArn="<notification_channel_ARN>" ) print("Platform application deleted successfully.")
Where
PlatformApplicationArn
is the notification channel ID (ARN).
-
If you do not have the AWS SDK for PHP yet, install and configure it.
-
To delete a push notification channel, use the following code:
$response = $client->deletePlatformApplication([ 'PlatformApplicationArn' => '<notification_channel_ARN>', ]); echo "Platform application deleted successfully.\n";
Where
PlatformApplicationArn
is the notification channel ID (ARN).
Use the delete HTTP API method for the PlatformApplications resource in Yandex Cloud Notification Service.