How to remove a Microsoft 365 organization from CubeBackup.
As a Microsoft 365 administrator or partner, you are probably backing up multiple Microsoft 365 organizations in CubeBackup. Here are the steps to remove an organization from CubeBackup.
Step1: Delete the organization from CubeBackup
Log in to CubeBackup for Microsoft 365 web console, switch to the organization that you want to delete, and make sure there is no backup job running for this organization.
Tip: You can click the Stop backup button to stop the current backup.
Find the organization ID in the URL of your current page. For example:
Log in to or SSH to your CubeBackup server.
Run the
cbackup removeOrganization
command in the <installation directory>\bin folder.NOTE: This operation requires special privileges.
For Windows users, open a Windows Command Prompt or Powershell as Administrator."C:\Program Files\CubeBackup365\bin\cbackup.exe" removeOrganization <organization-id>
For Linux or Docker users, please use
sudo -u cbuser…
in the bash shell.sudo -u cbuser /opt/cubebackup365/bin/cbackup removeOrganization <organization-id>
NOTE:
- The cbackup removeOrganization command removes only the organization from CubeBackup. The backup data for this organization remains completely untouched.
- If a restore request comes up for this organization after it has been removed, you can add this organization again and the backups for this organization will once again show up in the CubeBackup web console.
Step2: Remove unneeded backup data (Optional)
In some cases, you may no longer need the backup files for an organization after it has been removed from CubeBackup. For example, you may have tried CubeBackup with a test organization and would like to erase everything after the testing period is over.
To completely erase all backup data for an organization:
Remove the backup data for this organization.
Manually delete the backup data directory for this organization. For example, if you stored the backup data in the /var/cubebackup directory, you can delete the directory /var/cubebackup/organizations/<deleted-organization-id>.Tip: If you do not know where backup data is stored, you can find the correct location at the right bottom of the OVERVIEW page in the CubeBackup web console.
Remove the data index for this organization.
Manually delete the data index directory for this organization. For example, if you stored the data index in the /opt/cubebackup365/index directory, you can delete the directory /opt/cubebackup365/index/organizations/<deleted-organization-id>.Tip: If you do not know where data index is stored, you can find the find the correct location at the right bottom of the OVERVIEW page in the CubeBackup web console.