DELETEhttps://api.spotinst.io/ocean/aws/k8s/launchSpec/{OCEAN_LAUNCH_SPEC_ID}?accountId={ACCOUNT_ID}

Delete a specified launch specification in an Ocean cluster.

URL Parameters

Parameter Type Description
OCEAN_LAUNCH_SPEC_ID * String

The launch specification to delete.

ACCOUNT_ID * String

The Spot accountId associated with your token.

deleteNodes Boolean

When set to "true", all instances belonging to the deleted launch specification will be drained, detached, and terminated.

Example: true
Default: false
Response - 200

Body
Copied!
Downloaded!
{
    "request": {
        "id": "a608777a-a1c5-4f34-b30b-3f7355e3926b",
        "url": "/ocean/aws/k8s/cluster/o-12we32df?accountId=act-7461123d",
        "method": "DELETE",
        "timestamp": "2019-06-18T07:59:45.892Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:ocean:aws:k8s",
        "items": [],
        "count": 0
    }
}