DeleteEndpoint - Amazon Simple Notification Service

DeleteEndpoint

Deletes the endpoint for a device and mobile app from Amazon SNS. This action is idempotent. For more information, see Using Amazon SNS Mobile Push Notifications.

When you delete an endpoint that is also subscribed to a topic, then you must also unsubscribe the endpoint from the topic.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

EndpointArn

EndpointArn of endpoint to delete.

Type: String

Required: Yes

Errors

For information about the errors that are common to all actions, see Common Errors.

AuthorizationError

Indicates that the user has been denied access to the requested resource.

HTTP Status Code: 403

InternalError

Indicates an internal service error.

HTTP Status Code: 500

InvalidParameter

Indicates that a request parameter does not comply with the associated constraints.

HTTP Status Code: 400

Examples

The structure of AUTHPARAMS depends on the signature of the API request. For more information, see Examples of the complete Signature Version 4 signing process (Python) in the AWS General Reference.

Example

This example illustrates one usage of DeleteEndpoint.

Sample Request

https://sns.us-west-2.amazonaws.com/?Action=DeleteEndpoint &EndpointArn=arn%3Aaws%3Asns%3Aus-west-2%3A123456789012%3Aendpoint%2FGCM%2Fgcmpushapp%2F5e3e9847-3183-3f18-a7e8-671c3a57d4b3 &Version=2010-03-31 &AUTHPARAMS

Sample Response

<DeleteEndpointResponse xmlns="https://sns.amazonaws.com/doc/2010-03-31/"> <ResponseMetadata> <RequestId>c1d2b191-353c-5a5f-8969-fbdd3900afa8</RequestId> </ResponseMetadata> </DeleteEndpointResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: