Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

deleteLoginKeys

Prev Next

Available in VPC

Delete an authentication key. However, you can't delete authentication keys that are assigned a launch configuration for a server instance or Auto Scaling service.

Syntax

The deleteLoginKeys syntax is as follows:

./ncloud vserver deleteLoginKeys \
    --keyNameList <key-name-list> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running deleteLoginKeys.

Required options

The following options are required for deleteLoginKeys.

Options Type Required Description
--keyNameList List Required Authentication key list
  • You can enter multiple items separated by spaces. (e.g., --keyNameList key1 key2)
  • See getLoginKeyList.

Common options

For information about the options common to all vserver subcommands, see Server (VPC) options.

Examples

If the request to delete the authentication key is successful, the authentication key is deleted.

Command

The command example is as follows:

./ncloud vserver deleteLoginKeys \
    --keyNameList test-login-key-01 test-import-key-01 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "deleteLoginKeysResponse": {
    "requestId": "d4e5f678-9012-3456-def0-456789012345",
    "returnCode": "0",
    "returnMessage": "success"
  }
}