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

***************************
delete_launch_configuration
***************************



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

  

  Deletes the specified launch configuration.

   

  The launch configuration must not be attached to an Auto Scaling group. When this call completes, the launch configuration is no longer available for use.

  

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


  **Request Syntax**
  ::

    response = client.delete_launch_configuration(
        LaunchConfigurationName='string'
    )
    
  :type LaunchConfigurationName: string
  :param LaunchConfigurationName: **[REQUIRED]** 

    The name of the launch configuration.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`AutoScaling.Client.exceptions.ResourceInUseFault`

  
  *   :py:class:`AutoScaling.Client.exceptions.ResourceContentionFault`

  

  **Examples**

  This example deletes the specified launch configuration.
  ::

    response = client.delete_launch_configuration(
        LaunchConfigurationName='my-launch-config',
    )
    
    print(response)

  
  Expected Output:
  ::

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

  