Maintain control of your Microsoft 365 data
Post Reply
Jrouzies
Influencer
Posts: 16
Liked: 3 times
Joined: Apr 08, 2020 8:23 am
Contact:

Unable to remove data with Remove-VBOBackupItem

Post by Jrouzies »

Hello!

I am following the official documentation for the command Remove-VBOBackupItem https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=60, and it fails whatever I try with the error:

Code: Select all

$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.

Thanks
Mildur
Product Manager
Posts: 8735
Liked: 2296 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Unable to remove data with Remove-VBOBackupItem

Post by Mildur »

Hi

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.

remove-vboentitydata
Product Management Analyst @ Veeam Software
Jrouzies
Influencer
Posts: 16
Liked: 3 times
Joined: Apr 08, 2020 8:23 am
Contact:

Re: Unable to remove data with Remove-VBOBackupItem

Post by Jrouzies » 1 person likes this post

Hey Mildur,

Ah I understand, it was trying to remove the item from the Job, not the data.

I'll use that command, thank you!
Jrouzies
Influencer
Posts: 16
Liked: 3 times
Joined: Apr 08, 2020 8:23 am
Contact:

Re: Unable to remove data with Remove-VBOBackupItem

Post by Jrouzies »

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.

Is it normal?
Mildur
Product Manager
Posts: 8735
Liked: 2296 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Unable to remove data with Remove-VBOBackupItem

Post by Mildur » 1 person likes this post

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.
Product Management Analyst @ Veeam Software
Polina
Veeam Software
Posts: 2981
Liked: 708 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: Unable to remove data with Remove-VBOBackupItem

Post by Polina » 1 person likes this post

@Jrouzies,

Mildur is correct. Note though, that freed-up space in a database will be reused for new backups.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 9 guests