# 카테고리 삭제하기

## METHOD

```
DELETE
```

## URL

```
/category/:level1, /category/:level1/:level2
```

* level1: 상위 카테고리 이름
* level2: 하위 카테고리 이름

## RESPONSE

### success

**HTTP Status code : 204 No Content**

> Response Body는 따로 없습니다.

### fail

**HTTP Status code : 400 Bad Request**

```javascript
{
    "status": "BAD_REQUEST",
    "message": "존재하지 않는 카테고리입니다."
}
```

```javascript
{
    "status": "BAD_REQUEST",
    "message": "하위 카테고리가 존재하는 그룹은 삭제할 수 없습니다."
}
```

```javascript
{
    "status": "BAD_REQUEST",
    "message": "게시물이 존재하는 카테고리는 삭제할 수 없습니다."
}
```

| name    | type   | description |
| ------- | ------ | ----------- |
| status  | number | HTTP status |
| message | string | 에러 메시지      |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hoit1302.gitbook.io/edsc-api/category/manage/delete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
