deleteLaunchConfiguration

Prev Next

Available in VPC

Delete a Launch Configuration. Launch configurations that have been set up and in use for an Auto Scaling Group can't be deleted.

Syntax

The deleteLaunchConfiguration syntax is as follows:

./ncloud vautoscaling deleteLaunchConfiguration \
    --launchConfigurationNo <launch-configuration-no> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running deleteLaunchConfiguration.

Required options

The following options are required for deleteLaunchConfiguration.

Options Type Required Description
--launchConfigurationNo String Required Launch configuration number

Common options

For information on options commonly used in the vautoscaling command, see Auto Scaling (VPC) options.

Examples

If the request to delete a launch configuration is successful, the configuration details and deletion status of the launch configuration are returned.

Command

The command example is as follows:

./ncloud vautoscaling deleteLaunchConfiguration \
    --launchConfigurationNo 18305791 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
    "deleteLaunchConfigurationResponse": {
        "totalRows": 1,
        "launchConfigurationList": [
            {
                "regionCode": "KR",
                "launchConfigurationNo": "18305791",
                "launchConfigurationName": "test-launch-config-01",
                "serverImageProductCode": "SW.VSVR.OS.LNX64.ROCKY.0810.B050",
                "serverProductCode": "SVR.VSVR.STAND.C002.M008.NET.SSD.B050.G002",
                "loginKeyName": "test-key",
                "createDate": "2026-07-07T10:12:41+0900",
                "launchConfigurationStatus": {
                    "code": "DELTD",
                    "codeName": "Deleted"
                },
                "initScriptNo": "",
                "isEncryptedVolume": false,
                "serverImageNo": "25624115",
                "osInformation": "Rocky Linux 8.10",
                "serverSpecNo": "43",
                "serverSpecCode": "s2-g2-s50",
                "serverSpecDescription": "vCPU 2EA, Memory 8GB, [SSD]Disk 50GB"
            }
        ],
        "requestId": "d4e5f6a7-b8c9-0123-defa-456789012345",
        "returnCode": "0",
        "returnMessage": "success"
    }
}