Auto Scaling
API Reference (API Version 2011-01-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

DeleteLaunchConfiguration

Description

Deletes the specified LaunchConfiguration.

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

Request Parameters

For information about the common parameters that all actions use, see Common Parameters.

LaunchConfigurationName

The name of the launch configuration.

Type: String

Length constraints: Minimum length of 1. Maximum length of 1600.

Required: Yes

Errors

For information about the errors that are common to all actions, see Common Errors.

ResourceInUse

This is returned when you cannot delete a launch configuration or Auto Scaling group because it is being used.

HTTP Status Code: 400

Examples

Sample Request

https://autoscaling.amazonaws.com/?LaunchConfigurationName=my-test-lc
&Version=2011-01-01
&Action=DeleteLaunchConfiguration
&AUTHPARAMS 

Sample Response

<DeleteLaunchConfigurationResponse xmlns="http://autoscaling.amazonaws.com/doc/2011-01-01/">
  <ResponseMetadata>
    <RequestId>7347261f-97df-11e2-8756-35eEXAMPLE</RequestId>
  </ResponseMetadata>
</DeleteLaunchConfigurationResponse>