> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 워크스페이스 삭제

> 드래프트 폐기. 미게시면 식별자도 연쇄 삭제.

**`DELETE`** `https://api-datahub.octoparse.com/v1/data-apps/{app_id}/workspace`

인증: API 키 필요(`Authorization: Bearer <API Key>`). App 작성자만. 그 외 `404`.

드래프트 폐기. Release가 없으면 식별자도 연쇄 삭제(미게시 빈 껍데기 유지 안 함. 이력 이름 속박 해제).

드래프트 없음이 항상 즉시 `404`는 아님: 드래프트 없음·Release 0 식별자(이력 고아)는 빈 워크스페이스 표현으로 반환될 수 있음.

## 요청

### 경로 파라미터

<ParamField path="app_id" type="string" required>
  App 참조.
</ParamField>

### 요청 예시

```bash theme={null}
curl -X DELETE \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  "https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/workspace"
```

## 응답

### 200 성공

```json theme={null}
{
  "data": {
    "deleted": false,
    "app_deleted": false
  }
}
```

페이로드는 `data`로 감쌉니다. 필드:

<ResponseField name="deleted" type="boolean" required>
  드래프트 삭제 여부.
</ResponseField>

<ResponseField name="app_deleted" type="boolean">
  —
</ResponseField>

### 오류

| HTTP | `code`                | `category`  | 설명                                |
| ---- | --------------------- | ----------- | --------------------------------- |
| 401  | `unauthorized`        | `forbidden` | API 키 누락 또는 무효.                   |
| 404  | `workspace-not-found` | `not_found` | 진행 중 드래프트 없음. 정상 주경로 상태이며 오류가 아님. |

오류 응답은 `{"error": {code, category, message, retryable}}`입니다. <a href="/docs/ko/datahub/api/reference/introduction#errors">오류</a> 참고.

## 클라이언트 라이브러리

Python / JavaScript SDK는 아직 이 엔드포인트를 감싸지 않습니다. REST를 직접 호출하세요.
