> For the complete documentation index, see [llms.txt](https://openapi-docs.exosp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openapi-docs.exosp.com/guide/agent/agent-uninstall.md).

# 에이전트 삭제

<mark style="background-color:green;">PU</mark><mark style="background-color:green;">T</mark> `https://openapi.exosp.com/status/v1/agent/delete`

에이전트를 삭제하는 API 입니다.

### Query Parameters

<table><thead><tr><th width="167">항목</th><th width="112">타입</th><th>설명</th></tr></thead><tbody><tr><td>target<mark style="color:red;">*</mark></td><td>array</td><td><a data-mention href="#undefined">#undefined</a></td></tr></tbody></table>

#### 삭제 대상 상세

<table><thead><tr><th width="167">항목</th><th width="112">타입</th><th>설명</th></tr></thead><tbody><tr><td>name<mark style="color:red;">*</mark></td><td>string</td><td><strong>사용자 이름</strong> </td></tr><tr><td>email<mark style="color:red;">*</mark></td><td>string</td><td><strong>사용자 메일</strong></td></tr><tr><td>macAddressList<mark style="color:red;">*</mark></td><td>string</td><td><strong>컴퓨터 MAC 주소</strong></td></tr><tr><td>osType<mark style="color:red;">*</mark></td><td>string</td><td><strong>OS 유형</strong></td></tr></tbody></table>

### Response Schema

<table><thead><tr><th width="162">항목</th><th width="115">타입</th><th>설명</th></tr></thead><tbody><tr><td>code</td><td>int</td><td><p><strong>응답 처리 결과 코드</strong> </p><p>0 : 성공, 1 : 실패</p></td></tr><tr><td>message</td><td>string</td><td><p><strong>응답 처리 결과 메세지</strong></p><p>success : 성공, 그 외 : 실패</p></td></tr><tr><td>body</td><td>object</td><td><a data-mention href="#body">#body</a></td></tr></tbody></table>

#### **body 상세**

<table><thead><tr><th width="164">항목</th><th width="115">타입</th><th>설명</th></tr></thead><tbody><tr><td>deleted_count</td><td>int</td><td>삭제된 에이전트 수</td></tr><tr><td>deleted_data</td><td>array</td><td><a data-mention href="#undefined-1">#undefined-1</a></td></tr></tbody></table>

#### 삭제된 데이터 상세

<table><thead><tr><th width="181">항목</th><th width="110">타입</th><th>설명</th></tr></thead><tbody><tr><td>name</td><td>string</td><td><strong>사용자 이름</strong></td></tr><tr><td>email</td><td>string</td><td><strong>사용자 메일</strong></td></tr><tr><td>macAddress</td><td>string</td><td><strong>컴퓨터 MAC 주소</strong></td></tr><tr><td>osType</td><td>string</td><td><strong>OS 유형</strong></td></tr></tbody></table>

### Example

{% tabs %}
{% tab title="200 Success" %}

```javascript
curl -X 'PUT' \
  'https://openapi.exosp.com/status/v1/agent/delete' \
  -H 'accept: application/json' \
  -H 'x-exosp-access: YOUR_ACCESS_KEY' \
  -H 'x-exosp-secret: YOUR_ACCESS_SECRET' \
  -d '{
  "target": [
    {
      "name": "test",
      "email": "test@exosp.com",
      "macAddressList": "98:01:a7:a0:0f:95, 82:13:1a:08:7d:00, 82:13:1a:08:7d:01",
      "osType": "macOS"
    }
  ]
}' 

{
  "code": 0,
  "message": "success",
  "body": {
    "deleted_count": 1,
    "deleted_data": [
      {
        "name": "test",
        "email": "test@exosp.com",
        "macAddress": "|98:01:a7:a0:0f:95|82:13:1a:08:7d:00|82:13:1a:08:7d:01",
        "osType": "macOS"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}
