> For the complete documentation index, see [llms.txt](https://docs.tibero.com/tibero-manuals/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tibero.com/tibero-manuals/7.2.6.manuals/sql-reference-guide/data-definition-language/purge.md).

# PURGE

`RECYCLEBIN` 뷰에 포함된 스키마 객체를 완전히 제거합니다. 완전히 제거된 스키마 객체는 **FLASHBACK TABLE** 문으로 복원할 수 없습니다.

일반 PURGE의 경우 RECYCLEBIN에 있는 데이터를 drop segment queue로 이동시키므로, 일시적으로 테이블스페이스 사용량이 늘어난 것처럼 보일 수 있습니다.

`RECYCLEBIN` 뷰에 포함된 스키마 객체는 다음의 질의를 통해 확인할 수 있습니다.

```
SELECT * FROM RECYCLEBIN;

SELECT * FROM USER_RECYCLEBIN;
```

**PURGE**의 세부 내용은 다음과 같습니다.

* **문법**

<div align="left"><figure><img src="https://content.gitbook.com/content/evqs7Ne3nMyXQFkBSQWR/blobs/wjnTGRjEjoEHOg5ZERWZ/image.png" alt=""><figcaption></figcaption></figure></div>

* **특권**
  * 테이블이나 인덱스를 대상으로 **PURGE** 문을 실행하려면 해당 객체를 제거할 수 있는 특권이 필요합니다.
  * `DBA_RECYCLEBIN`을 대상으로 **PURGE** 문을 실행하려면 `SYSDBA` 특권이 필요합니다.
* **구성요소**

<table><thead><tr><th width="196.22222900390625">구성요소</th><th>설명</th></tr></thead><tbody><tr><td>TABLE table_name</td><td><ul><li>특정 테이블을 완전히 제거할 때 사용</li><li>테이블을 제거하기 전 이름 또는 <code>RECYCLEBIN</code> 뷰를 참조해 제거 후 시스템이 변경한 이름으로 지정할 수 있음</li><li>같은 이름의 테이블이 <code>RECYCLEBIN</code> 뷰에 여러 개 있으면 원래 이름 지정 시 가장 오래된 테이블이 제거됨</li></ul></td></tr><tr><td>INDEX index_name</td><td><ul><li>특정 인덱스를 완전히 제거할 때 사용</li><li>인덱스를 제거하기 전 이름 또는 <code>RECYCLEBIN</code> 뷰를 참조해 제거 후 시스템이 변경한 이름으로 지정할 수 있음</li><li>같은 이름의 인덱스가 <code>RECYCLEBIN</code> 뷰에 여러 개 있으면 원래 이름 지정 시 가장 오래된 인덱스가 제거됨</li></ul></td></tr><tr><td>RECYCLEBIN</td><td><code>USER_RECYCLEBIN</code> 뷰에 포함된 모든 객체를 완전히 제거</td></tr><tr><td>DBA_RECYCLEBIN</td><td><code>DBA_RECYCLEBIN</code> 뷰에 포함된 모든 객체를 완전히 제거</td></tr><tr><td>TABLESPACE tablespace_name</td><td>특정 테이블스페이스에 존재하는 객체를 완전히 제거</td></tr><tr><td>USER user_name</td><td><code>USER</code> 절을 지정하면 해당 테이블스페이스 안에서도 특정 사용자의 객체만 완전히 제거</td></tr></tbody></table>

* **예제**

다음은 **PURGE**를 사용해 테이블을 완전히 제거하는 예입니다.

```
SQL> ALTER SYSTEM SET USE_RECYCLEBIN=Y;
System altered.

SQL> CREATE TABLE t (a NUMBER);
Table 'T' created.

SQL> DROP TABLE t;
Table 'T' dropped.

SQL> PURGE TABLE t;
Purged.
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.tibero.com/tibero-manuals/7.2.6.manuals/sql-reference-guide/data-definition-language/purge.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
