Menu
Amazon Simple Notification Service
API Reference (API Version 2010-03-31)

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

Example

Example

Sample Request

Copy
POST http://sns.us-west-2.amazonaws.com/ HTTP/1.1 ... Action=DeleteEndpoint &SignatureMethod=HmacSHA256 &AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE &EndpointArn=arn%3Aaws%3Asns%3Aus-west-2%3A123456789012%3Aendpoint%2FGCM%2Fgcmpushapp%2F5e3e9847-3183-3f18-a7e8-671c3a57d4b3 &SignatureVersion=2 &Version=2010-03-31 &Signature=LIc6GI3JbNhmHBEDmSxzZp648XPe5CMeFny%2BTQFtomQ%3D &Timestamp=2013-07-01T23%3A00%3A12.456Z

Sample Response

Copy
HTTP/1.1 200 OK ... <DeleteEndpointResponse xmlns="http://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: