Files
doris/docs/en/sql-reference/sql-statements/Administration/SHOW TRASH.md
Pxl 236e0f1eda [Feature] Support for querying the trash used capacity (#6247)
Support for querying the trash used capacity.

```
SHOW TRASH [ON ...]
```

Now user can proactively scan trash directory.
2021-08-10 10:10:47 +08:00

1.4 KiB

title, language
title language
SHOW TRASH en

SHOW TRASH

description

This statement is used to view trash used capacity on some backends.

Syntax:

    SHOW TRASH [ON "BackendHost:BackendHeartBeatPort"];

Explain:

    1. Backend The format is BackendHost:BackendHeartBeatPort of the node. 
    2. TrashUsedCapacity Indicates that the trash data of the node occupies space. 

example

1. View the space occupied by trash data of all be nodes. 

    SHOW TRASH;

2. Check the space occupied by trash data of '192.168.0.1:9050'(The specific disk information will be displayed). 

    SHOW TRASH ON "192.168.0.1:9050";

keyword

SHOW, TRASH