Remove-VBOBackupItem

Short Description

Removes an object from a backup job.

Syntax

Remove-VBOBackupItem -Job <VBOJob> -BackupItem <VBOBackupItem[]> [<CommonParameters>]

Detailed Description

This cmdlet removes an object from a backup job.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

BackupItem

Specifies an array of objects. The cmdlet will remove these objects from the specified backup job.

Accepts the VBOBackupItem[] object.

To get this object, run the Get-VBOBackupItemReturns a list of objects included in a backup job. cmdlet.

VBOBackupItem[]

True

Named

False

Job

Specifies a backup job. The cmdlet will remove an object from this backup job.

Accepts the VBOJob object.

To get this object, run the Get-VBOJobReturns backup jobs. cmdlet.

VBOJob

True

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.

Examples

Remove-VBOBackupItemExample 1: Removing Backup Item by Name

This example shows how to remove a Microsoft Exchange or Microsoft SharePoint object from the scope of the TestJob backup job even if this object is no longer available in Microsoft organization.

$job = Get-VBOJob -Name "TestJob"

$item = Get-VBOBackupItem -Job $job -Name "ObjectToRemove"

Remove-VBOBackupItem -Job $job -BackupItem $item

Perform the following steps:

  1. Run the Get-VBOJobReturns backup jobs. cmdlet. Specify the Name parameter value. Save the result to the $job variable.
  2. Run the Get-VBOBackupItemReturns a list of objects included in a backup job. cmdlet. Set the $job variable as the Job parameter value and specify the Name parameter value to select the item in the backup job. Save the result to the $item variable.
  3. Run the Remove-VBOBackupItem cmdlet with the $job and $item variables to remove the selected object from the specified backup job.

Remove-VBOBackupItemExample 2: Removing User Backup Item

This example shows how to remove an organization user UserAlpha backup item from the TestJob backup job.

$org = Get-VBOOrganization -Name "ABC Company"

$user = Get-VBOOrganizationUser -Organization $org -DisplayName "UserAlpha"

$backupItemUser = New-VBOBackupItem -User $user -Mailbox:$True -ArchiveMailbox:$false -OneDrive:$false

$job = Get-VBOJob -Name "TestJob"

Remove-VBOBackupItem -Job $job -BackupItem $backupItemUser

Perform the following steps:

  1. Run the Get-VBOOrganizationReturns Microsoft organizations added to the Veeam Backup for Microsoft 365 infrastructure. cmdlet to get an organization. Save the result to the $org variable.
  2. Run the Get-VBOOrganizationUserReturns organization users. cmdlet to get an organization user. Save the result to the $user variable.
  3. Run the New-VBOBackupItemCreates organization objects. cmdlet to select the item in the backup job. Save the result to the $backupItemUser variable.
  4. Run the Get-VBOJobReturns backup jobs. cmdlet to select the backup job for modification. Save the result to the $job variable.
  5. Run the Remove-VBOBackupItem cmdlet with the $job and $backupItemUser variables to remove the selected user from the specified backup job.

Page updated 2026-08-21

Page content applies to build 8.6.0.1102