mymeiyi commented on code in PR #705: URL: https://github.com/apache/doris-website/pull/705#discussion_r1623715601
########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Drop/DROP-CATALOG-RECYCLE-BIN.md: ########## @@ -0,0 +1,90 @@ +--- +{ + "title": "DROP-CATALOG-RECYCLE-BIN", + "language": "zh-CN" +} +--- + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +## DROP-CATALOG-RECYCLE-BIN + +### Name + +DROP CATALOG RECYCLE BIN + +### Description + +该语句用于立即删除回收站中的数据库、表 或者 分区。 + +可以通过 `SHOW CATALOG RECYCLE BIN` 来查询当前可删除的元信息。 + +语法: + +1. 根据 DbId 删除数据库 + + ```sql + DROP CATALOG RECYCLE BIN WHERE 'DbId' = db_id; + ``` + +2. 根据 TableId 删除表 + + ```sql + DROP CATALOG RECYCLE BIN WHERE 'TableId' = table_id; + ``` + +3. 根据 PartitionId 删除分区 + + ```sql + DROP CATALOG RECYCLE BIN WHERE 'PartitionId' = partition_id; + ``` + +说明: + +- 当删除数据库、表或者分区时,回收站会在 `catalog_trash_expire_second`秒后将其删除(在 `fe.conf` 中设置)。此语句将立即删除它们。 +- `'DbId'`、 `'TableId'` 和 `'PartitionId'` 大小写不敏感且不区分单引号和双引号。 +- 当删除不在回收站中的数据库时,也会删除回收站中具有相同 `DbId` 的所有表和分区。只有在没有删除任何内容(数据库、表或分区)的情况下,它才会报错。当删除不在回收站中的表时,处理方法类似。 + +### Example + +1. 删除 id 为 example_db_id 的数据库 Review Comment: 删除 id 为 example_db_id 的数据库、表和分区 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org For additional commands, e-mail: dev-h...@doris.apache.org