docs/en/administration/Data_recovery.md
Recover mistakenly deleted databases/tables/partitions. After drop table or drop database, StarRocks will not physically delete the data immediately, but keep it in Trash for a period of time (1 day by default). Administrators can recover the mistakenly deleted data with the RECOVER command.
Syntax:
-- 1) Recover database
RECOVER DATABASE db_name;
-- 2) Recover table
RECOVER TABLE [db_name.]table_name;
-- 3) Recover partition
RECOVER PARTITION partition_name FROM [db_name.]table_name;
catalog_trash_expire_second parameter in fe.conf.Recover the database named example_db
RECOVER DATABASE example_db;
Recover the table named example_tbl
RECOVER TABLE example_db.example_tbl;
Recover the partition named p1 in the table example_tbl
RECOVER PARTITION p1 FROM example_tbl;