The tenant-level recycle bin manages deleted databases and tables within a specific tenant. This topic describes how to manage the recycle bin, including viewing recycled objects and purging the recycle bin.
Prerequisites
The recycle bin must be enabled at the instance level. For details, refer to Instance-level recycle bin.
Access tenant-level recycle bin
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Instances.
In the instance list, expand the target instance.
Click the name of the tenant to go to the Overview page of the tenant.
In the left navigation pane, click Recycle Bin to access the tenant-level recycle bin.
View tenant-level recycle bin
Access the tenant-level recycle bin.
On the Recycle Bin page, view the deleted content.
a. Click the Databases tab to view the deleted database information, including original database name, tenant and its ID, tenant mode, storage occupied, recycle time, auto-delete time, and the status.
Select Delete in the Actions column, or select multiple databases and click Batch Delete at the bottom of the page to physically delete the selected databases. After confirming the deletion, the status of the specified database will change to Deleting, until the deletion task is completed.
Click the button in the Actions column to select Restore, or select multiple databases and click Batch Restore at the bottom of the page to restore the selected databases. After confirming the restoration, the status of the specified database will change to Restoring, until the restoration task is completed.
b. Click the Tables tab to view the deleted table information, including original table name, original database name, tenant and its ID, tenant mode, storage occupied, recycle time, auto-delete time, and the status.
Click the button in the Actions column to select Delete, or select multiple tables and click Batch Delete at the bottom of the page to physically delete the selected tables.
Click the button in the Actions column to select Restore, or select multiple tables and click Batch Restore at the bottom of the page to restore the selected tables.
Purge tenant-level recycle bin
Note
The recycle bin's default retention period is 7 days (aligned with the backup retention period), with a maximum setting of 1096 days. However, manually purging the recycle bin or setting a retention period shorter than the backup retention period may compromise the ability to perform complete, lossless recovery.
Access the tenant-level recycle bin.
On the Recycle Bin page, you can view the auto-delete period, which is set by the instance-level recycle bin. For more information, refer to Instance-level recycle bin.
You can also click Empty Recycle Bin at the top right of the page to manually empty the recycle bin.