:doc:`Shield <../../shield>` / Client / delete_subscription

*******************
delete_subscription
*******************



.. py:method:: Shield.Client.delete_subscription()

  

  Removes Shield Advanced from an account. Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteSubscription>`_  


  **Request Syntax**
  ::

    response = client.delete_subscription()
    
    
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Shield.Client.exceptions.InternalErrorException`

  
  *   :py:class:`Shield.Client.exceptions.LockedSubscriptionException`

  
  *   :py:class:`Shield.Client.exceptions.ResourceNotFoundException`

  