---
title: "deleteLoginKey"
slug: "cli-server-deleteloginkey"
updated: 2026-04-23T08:56:59Z
published: 2026-04-23T08:58:53Z
canonical: "cli.ncloud-docs.com/cli-server-deleteloginkey"
---

> ## 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.

# deleteLoginKey

## 개요<a name="개요"></a>

로그인키 삭제

## 설명 <a name="설명"></a>

서버 인스턴스(VM)를 생성하고 생성된 서버 인스턴스(VM)에 접속 시 로그인키를 이용하여 비밀번호를 암호화하고 복호화 하는 키를 삭제합니다.

## 요청 파라미터 <a name="요청파라미터"></a>

| 파라미터 명 | 필수   여부 | 타입   | 제약사항      | 설명                                                         |
| ----------- | ----------- | ------ | ------------- | ------------------------------------------------------------ |
| keyName     | Yes         | String | Min:3, Max:30 | - 삭제할 키 명<br>키 명이 존재하지 않을 경우 오류 발생 |

## 응답 데이터 타입 <a name="응답데이터타입"></a>

- CommonResponse 타입

| CommonResponse                           |
| ---------------------------------------- |
| private String requestId;                |
| private String returnCode;               |
| private String returnMessage;            |

## 예시 <a name="예시"></a>

### 호출 <a name="호출"></a>

```
ncloud server deleteLoginKey --keyName ncloudTest
```

### 응답 <a name="응답"></a>
 
```json
{
  "deleteLoginKeyResponse": {
    "requestId": "ec948e36-9e57-4347-bd96-7859cb972100",
    "returnCode": "0",
    "returnMessage": "success"
  }
}
```
```xml
<?xml version="1.0" encoding="UTF-8" ?>
<deleteLoginKeyResponse>
  <requestId>ec948e36-9e57-4347-bd96-7859cb972100</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
</deleteLoginKeyResponse>
```
