How to clean up the deleted tenant resources and deleted resources of active tenants in Azure File Share
This article provides instructions on cleaning up deleted tenant resources and deleted resources of active tenants in Azure File Share using a command-line tool. The process can be carried out using the following commands:
- deleted_sites_resource_cleanup: Utilized for removing deleted tenant resources in Azure File Share.
- deleted_resource_cleanup: Utilized for removing the deleted dashboards/reports and data source resources associated with the active tenants.
Remove the resources of deleted tenants:
deleted_sites_resource_cleanup: This command facilitates the removal of deleted site resources located at the paths “/application/app_data/bi/{tenant_id}” for Bold BI and “/application/app_data/reports/{tenant_id}” for Bold Reports on an Azure File Share.
- Launch the command prompt, access the id_web_deployment pod using bash, and navigate to the directory containing the admin utility. Execute the following commands:
kubectl exec -it <id-web-deployment-pod> -n namespace -- bash
cd /application/utilities/adminutils/
- Execute the command “dotnet Syncfusion.Server.Commands.Utility.dll deleted_sites_resource_cleanup”. This will prompt you to enter the storage details like account name, storage account key, and file share name.
- After submitting the necessary details, the process will clean all deleted tenant’s resources located at the path for both Bold BI and Bold Reports on the designated Azure File Share.
- The file “tenant_clean_up_result_timestamp.csv” will be created in the “/application/app_data/cleanresources” directory at the end of deletion process. This file will include details of the deleted resources with its success or failure status.
Remove the deleted dashboards/reports and data sources associated with the active tenant:
deleted_resource_cleanup: This command is utilized to remove deleted dashboards/reports and data source resources belonging to the respective active tenants. The resources are located in the paths “/application/app_data/bi/{tenant_id}/resources/{dashboard_id or datasource_id}” for Bold BI and “/application/app_data/reports/{tenant_id}/resources/{report_id or datasource_id}” for Bold Reports on an Azure File Share.
- Launch the command prompt, access the id_web_deployment pod using bash, and navigate to the directory containing the admin utility is located. Execute the following commands:
kubectl exec -it <id-web-deployment-pod> -n namespace -- bash
cd /application/utilities/adminutils/
- Execute the command “dotnet Syncfusion.Server.Commands.Utility.dll deleted_resource_cleanup”. This will prompt you to enter the storage details like account name, storage account key, and file share name.
- After submitting the necessary details, the process will clean for all deleted resources associated with active tenants for both Bold BI and Bold Reports on the designated Azure File Share.
- The file “resources_clean_up_result_timestamp.csv” will be created in the “/application/app_data/cleanresources” directory at the end of deletion process. This file will include details of the deleted resources with its success or failure status.