:doc:`AutoScaling <../../autoscaling>` / Client / delete_lifecycle_hook

*********************
delete_lifecycle_hook
*********************



.. py:method:: AutoScaling.Client.delete_lifecycle_hook(**kwargs)

  

  Deletes the specified lifecycle hook.

   

  If there are any outstanding lifecycle actions, they are completed first ( ``ABANDON`` for launching instances, ``CONTINUE`` for terminating instances).

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook>`_  


  **Request Syntax**
  ::

    response = client.delete_lifecycle_hook(
        LifecycleHookName='string',
        AutoScalingGroupName='string'
    )
    
  :type LifecycleHookName: string
  :param LifecycleHookName: **[REQUIRED]** 

    The name of the lifecycle hook.

    

  
  :type AutoScalingGroupName: string
  :param AutoScalingGroupName: **[REQUIRED]** 

    The name of the Auto Scaling group.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`AutoScaling.Client.exceptions.ResourceContentionFault`

  

  **Examples**

  This example deletes the specified lifecycle hook.
  ::

    response = client.delete_lifecycle_hook(
        AutoScalingGroupName='my-auto-scaling-group',
        LifecycleHookName='my-lifecycle-hook',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  