:doc:`SNS <../../sns>` / Client / delete_endpoint

***************
delete_endpoint
***************



.. py:method:: SNS.Client.delete_endpoint(**kwargs)

  

  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 <https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html>`__.

   

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

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteEndpoint>`_  


  **Request Syntax**
  ::

    response = client.delete_endpoint(
        EndpointArn='string'
    )
    
  :type EndpointArn: string
  :param EndpointArn: **[REQUIRED]** 

    ``EndpointArn`` of endpoint to delete.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`SNS.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`SNS.Client.exceptions.InternalErrorException`

  
  *   :py:class:`SNS.Client.exceptions.AuthorizationErrorException`

  