Remove-VBRNASBackup (obsolete)

Short Description

Removes backup files created by the file backup job.

Note

This cmdlet is obsolete. Run the Remove-VBRUnstructuredBackupRemoves backup files created by the file backup jobs and object storage backup jobs. cmdlet instead.

Note

If the four-eyes authorization is enabled, you cannot run this cmdlet. For more information, see the Four-Eyes Authorization section in the User Guide for VMware vSphere.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

This cmdlet provides the following parameter sets:

  • FromDb (Default)

    Remove-VBRNASBackup -NASBackup <VBRNASBackup[]> [-WhatIf] [-Confirm] [<CommonParameters>]

  • NASServer

    Remove-VBRNASBackup -NASBackup <VBRNASBackup[]> -NASServer <VBRNASServer[]> [-RunAsync]

    [-WhatIf] [-Confirm] [<CommonParameters>]

  • FromDisk

    Remove-VBRNASBackup -NASBackup <VBRNASBackup[]> [-FromDisk] [-RunAsync]

    [-WhatIf] [-Confirm] [<CommonParameters>]

  • RestorePoint

    Remove-VBRNASBackup -RestorePoint <VBRNASBackupRestorePoint[]> [-RunAsync]

    [-WhatIf] [-Confirm] [<CommonParameters>]

Detailed Description

This cmdlet removes backup files created by the file backup job.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

FromDisk

Defines that the cmdlet will remove backup files from disk.

SwitchParameter

True

Named

False

NASBackup

Specifies an array of backup files created by the file backup job. The cmdlet will remove these backup files.

Accepts the VBRNASBackup[] object. To create this object, run the Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead. cmdlet.

VBRNASBackup[]

True

Named

True (ByPropertyName, ByValue)

NASServer

Specifies an array of file shares. The cmdlet will remove backup files of the specified file shares.

Accepts the VBRNASServer[] object. To create this object, run the Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead. cmdlet.

VBRNASServer[]

True

Named

False

RestorePoint

Specifies an array of restore points. The cmdlet will remove backups that have restore points specified in the array.

If the NASBackup parameter is also specified, the cmdlet will remove backup files for specified file shares.

Accepts the VBRNASBackupRestorePoint[] object. To create this object, run the Get-VBRNASBackupRestorePointReturns restore points of backups created by file backup jobs. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackupRestorePoint cmdlet instead. cmdlet.

VBRNASBackupRestorePoint[]

True

Named

True (ByPropertyName, ByValue)

RunAsync

Defines that the command returns immediately without waiting for the task to complete.

SwitchParameter

False

Named

False

Confirm

Defines that the cmdlet will display a prompt that asks if the user is sure that he wants to continue.

Note: Microsoft PowerShell enables the Confirm parameter for this cmdlet by default. To disable this option, set the parameter value to $false. That is, Confirm:$false.

SwitchParameter

False

Named

False

WhatIf

Defines that the cmdlet will write a message that describes the effects of running the cmdlet without actually performing any action.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Remove-VBRNASBackup (obsolete)Example 1. Removing Backup Files from Veeam Backup & Replication Infrastructure

This example shows how to remove the Reports backup backup files from the Veeam Backup & Replication infrastructure.

$backupfile = Get-VBRNASBackup -Name "Reports backup"

Remove-VBRNASBackup -NASBackup $backupfile

Perform the following steps:

  1. Run the Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead. cmdlet. Specify the Name parameter value. Save the result to the $backupfile variable.
  2. Run the Remove-VBRNASBackup cmdlet. Set the $backupfile variable as the NASBackup parameter value.

Remove-VBRNASBackup (obsolete)Example 2. Removing Backup Files of Specific File Shares from Disk

This example shows how to remove the Reports backup of the \\WinSRV2049\Documents file share from a disk.

$backupfile = Get-VBRNASBackup -Name "Reports"

$server = Get-VBRNASServer -Name "\\WinSRV2049\Documents"

Remove-VBRNASBackup -NASBackup $backupfile -NASServer $server

Perform the following steps:

  1. Run the Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead. cmdlet. Specify the Name parameter value. Save the result to the $backupfile variable.
  2. Run the Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead. cmdlet. Specify the Name parameter value. Save the result to the $server variable.
  3. Run the Remove-VBRNASBackup cmdlet. Set the $backupfile variable as the NASBackup parameter value. Set the $server variable as the NASServer parameter value.

Remove-VBRNASBackup (obsolete)Example 3. Removing Backup Files From Disk

This example shows how to remove the Reports backup file from a disk.

$backupfile = Get-VBRNASBackup -Name "Reports"

Remove-VBRNASBackup -NASBackup $backupfile -FromDisk

Perform the following steps:

  1. Run the Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead. cmdlet. Specify the Name parameter value. Save the result to the $backupfile variable.
  2. Run the Remove-VBRNASBackup cmdlet. Set the $backupfile variable as the NASBackup parameter value. Provide the FromDisk parameter.

Remove-VBRNASBackup (obsolete)Example 4. Removing Restore Points of File Backups for Specific File Share

This example shows how to remove restore points of the NFS03 backup file created to back up the \\WinSRV2049\Documents file share.

$backupfile = Get-VBRNASBackup -Name "NFS03"

$server = Get-VBRNASServer -Name "\\WinSRV2049\Documents"

$restorepoint = Get-VBRUnstructuredBackupRestorePoint -NASServer $server -NASBackup $backupfile

Remove-VBRNASBackup -RestorePoint $restorepoint -RunAsync

Perform the following steps:

  1. Run the Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead. cmdlet. Specify the Name parameter value. Save the result to the $backupfile variable.
  2. Run the Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead. cmdlet. Specify the Name parameter value. Save the result to the $server variable.
  3. Run the Get-VBRUnstructuredBackupRestorePointReturns restore points created by file backup jobs and object storage backup jobs. cmdlet. Set the $server variable as the NASServer parameter value. Set the $backupfile variable as the NASBackup parameter value.
  4. Run the Remove-VBRNASBackup cmdlet. Set the $restorepoint as the RestorePoint parameter value. Provide the RunAsync parameter.
  • Get-VBRNASBackupReturns backup files created by the file backup job. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackup cmdlet instead.
  • Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead.
  • Get-VBRNASBackupRestorePointReturns restore points of backups created by file backup jobs. This cmdlet is obsolete. Run the Get-VBRUnstructuredBackupRestorePoint cmdlet instead.

Page updated 2026-08-19

Page content applies to build 13.1.1.18