Can be used in a VPC environment.
Summary
Delete Launch Configurations by using the Launch Configuration number.
You can't delete the Launch Configuration in use set in the Auto Scaling Group.
Request
Request Parameters
| Parameter name | Requirement status | Type | Restrictions | Description | 
|---|---|---|---|---|
| regionCode | No | String | Region code You can decide the region of Launch Configuration to delete. You can obtain the regionCode through the getRegionList action. Default: Select the first region of the getRegionList search results  | 
|
| launchConfigurationNo | Yes | String | The Launch Configuration number to delete You can obtain the launchConfigurationNo through the getLaunchConfigurationList action.  | 
|
| responseFormatType | No | String | Format type of the response results Options : xml | json Default : xml  | 
Response
Response data type
- LaunchConfigurationList type
 
| LaunchConfigurationList extends CommonResponse | 
|---|
| private Integer totalRows; | 
| private List | 
| LaunchConfiguration | 
|---|
| private String regionCode; | 
| private String launchConfigurationNo; | 
| private String launchConfigurationName; | 
| private String serverImageProductCode; | 
| private String memberServerImageInstanceNo; | 
| private String serverProductCode; | 
| private String loginKeyName; | 
| private Date createDate; | 
| private CommonCode launchConfigurationStatus; | 
| private String initScriptNo; | 
| private Boolean isEncryptedVolume; | 
Example
Request example
ncloud vautoscaling deleteLaunchConfiguration --regionCode KR --launchConfigurationNo ***163
Response example
<deleteLaunchConfigurationResponse>
  <requestId></requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <launchConfigurationList>
    <launchConfiguration>
      <regionCode>KR</regionCode>
      <launchConfigurationNo>***163</launchConfigurationNo>
      <launchConfigurationName>test-***</launchConfigurationName>
      <serverImageProductCode>SW.VSVR.OS.LNX64.CNTOS.0703.B050</serverImageProductCode>
      <memberServerImageInstanceNo></memberServerImageInstanceNo>
      <serverProductCode>SVR.VSVR.STAND.C002.M008.NET.SSD.B050.G002</serverProductCode>
      <loginKeyName>test-***</loginKeyName>
      <createDate>2020-12-07T13:08:50+0900</createDate>
      <launchConfigurationStatus>
        <code>DELTD</code>
        <codeName>Deleted</codeName>
      </launchConfigurationStatus>
      <initScriptNo></initScriptNo>
      <isEncryptedVolume>false</isEncryptedVolume>
    </launchConfiguration>
  </launchConfigurationList>
</deleteLaunchConfigurationResponse>