$job = Get-VBOJob -Name "Name"
$item = Get-VBOBackupItem -Job $job
Remove-VBOBackupItem -Job $job -BackupItem $item
Remove-VBOBackupItem : Unable to remove all backup items from the job. Job must contain at least one item for backup.
Item and Job variables are well filled, there is well data on Veeam.
What am I missing? I don't find any documentation for that error.
This commands removes Items from a backup job configuration and not the actual backed up data.
With your command, you remove the entire source of your backup job configuration. And a backup Job cannot be empty. A single item must be configured as a source to be backed up.
If you want to remove already backed up data from the backup repo, use this command instead.
The command is running successfully, the task is completed on Veeam O365 Backup, the data is not visible anymore in the Exchange Explorer but my disk space is not reducing.
Yes, this are database files. They will not shrink by themselves.
If I remember correctly, there are some commands, If you want to shrink the database files. I recommend to open a support case with veeam to get the official supported way to do it.