The data recycle bin feature provides temporary storage for deleted Iceberg native tables under the DataLakeCatalog data catalog, to retain accidentally deleted data. Once this feature is enabled, all deleted data files will be stored into the recycle bin, instead of being permanently deleted. Administrators can perform recovery and deletion management on these data tables, while regular users can recover data tables depending on their permissions. This effectively reduces the risk of data loss and improves the efficiency of data management.
You can enable the data recycle bin feature for your DataLakeCatalog data catalog through the metadata management in Data Lake Compute (DLC).
Note:
1. Once the feature is enabled, files in the data recycle bin will still incur storage fees. When the files are permanently deleted from the recycle bin, no charges will be applied. For details, see storage fees. 2. The retention duration for the files in the data recycle bin can be configured to 7 days, 15 days, or 30 days according to the use cases.
Enabling the Data Recycle Bin Feature
Note:
1. Administrator confirmation is required to enable the feature.
2. Once the feature is enabled, any deleted data tables will be retained in the recycle bin by default, and storage fees will be charged.
2. In the left sidebar, select Metadata Management. In the data catalogs, find the DataLakeCatalog data catalog. 3. Click More in the operation column of this catalog. Select Data Recycle Bin, confirm and click the Enable Recycle Bin button.
4. Configure the retention duration for the files in the recycle bin.
Recovering Tables in the Data Recycle Bin
Note:
1. Administrators can recover all data tables in the recycle bin. Regular users can recover data tables from databases for which the users have edit permission.
2. The recovery operation is only supported for a single table, and batch operations are not supported.
3. When another table with the same name already exists in the database to which the table to be recovered belongs, you need to change the name of the existing duplicate table before the recovery.
4. If the database to which the table belongs is deleted, the table cannot be recovered.
2. In the left sidebar, select Metadata Management. In the data catalogs, find the DataLakeCatalog data catalog. 3. Click More in the operation column of this catalog and select Data Recycle Bin.
4. Select the data table to be recovered from the list and click Recover in the right operation column.
Deleting Tables in the Data Recycle Bin
Note:
1. Only administrators are allowed to delete the tables in the recycle bin.
2. Once the tables are deleted from the recycle bin, they can no longer be recovered. Please confirm before proceeding.
3. If the dwell time of a data table in the recycle bin exceeds the retention duration, it will be automatically deleted.
4. Table deletion is supported for a single table and batch operations.
2. In the left sidebar, select Metadata Management. In the data catalogs, find the DataLakeCatalog data catalog. 3. Click More in the operation column of this catalog and select Data Recycle Bin.
4. Select the data table to be deleted from the list and click the Delete button in the right operation column. You can also select multiple tables and click the Batch Delete button in the top-left corner.
Managing the Data Recycle Bin Feature
Note:
Only administrators are allowed to manage the data recycle bin feature.
Setting Retention Duration for Files in the Data Recycle Bin
Note:
The retention duration change takes effect immediately. If the duration is set shorter than the original duration, the existing tables in the recycle bin will be permanently deleted immediately. For example, if the retention duration is changed from 15 days to 7 days, tables older than 7 days will be deleted immediately. Please confirm before proceeding.
2. In the left sidebar, select Metadata Management. In the data catalogs, find the DataLakeCatalog data catalog. 3. Click More in the operation column of this catalog and select Data Recycle Bin.
4. Click the Recycle Bin Configurations button and set the retention duration for tables in the recycle bin.
Disabling the Data Recycle Bin Feature
Note:
1. Before disabling the feature, ensure all tables in the recycle bin are removed.
2. Once the feature is disabled, the data table deletion action will delete the table immediately and permanently without retention and recovery.
2. In the left sidebar, select Metadata Management. In the data catalogs, find the DataLakeCatalog data catalog. 3. Click More in the operation column of this catalog and select Data Recycle Bin.
4. Click the Recycle Bin Configurations button to disable the feature.