Remove-VBRUnstructuredBackup
Short Description
Removes backup files created by the file backup jobs and object storage backup jobs.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
FromDb (Default)Remove-VBRUnstructuredBackup -Backup <VBRUnstructuredBackup[]> [-WhatIf]
[-Confirm] [<CommonParameters>]
-
NASServerRemove-VBRUnstructuredBackup -Backup <VBRUnstructuredBackup[]> -Server <VBRUnstructuredServer[]> [-RunAsync]
[-WhatIf] [-Confirm] [<CommonParameters>]
-
FromDiskRemove-VBRUnstructuredBackup -Backup <VBRUnstructuredBackup[]> [-FromDisk] [-RunAsync]
[-WhatIf] [-Confirm] [<CommonParameters>]
-
RestorePointRemove-VBRUnstructuredBackup -RestorePoint <VBRUnstructuredBackupRestorePoint[]> [-RunAsync]
[-WhatIf] [-Confirm] [<CommonParameters>]
Detailed Description
This cmdlet removes backup files created by the file backup jobs and object storage backup jobs.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Backup |
Specifies an array of backup files created by the file backup jobs and object storage backup jobs. The cmdlet will remove these backup files.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
FromDisk |
Defines that the cmdlet will remove backup files from disk. |
|
True |
Named |
False |
|
RestorePoint |
Specifies an array of restore points. The cmdlet will remove backups that have restore points specified in the array.
Note: If the
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Server |
Specifies an array of file shares and object storage. The cmdlet will remove backup files of the specified file shares from the disk.
Accepts the |
|
True |
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 |
|
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. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Example 1. Removing Backup Files from Veeam Backup & Replication Infrastructure
|
This example shows how to remove the
Perform the following steps:
|
Example 2. Removing Backup Files of Specific Object Storage from Disk
|
This example shows how to remove the
Perform the following steps:
|
Example 3. Removing Backup Files From Disk
|
This example shows how to remove the
Perform the following steps:
|
Example 4. Removing Restore Points of File Backups for Specific File Share
|
This example shows how to remove restore points of the
Perform the following steps:
|
Related Commands
Get-VBRUnstructuredBackupReturns backup files created by file backup jobs and object storage backup jobs.Get-VBRUnstructuredServerReturns unstructured data sources added to the inventory.Get-VBRUnstructuredBackupRestorePointReturns restore points created by file backup jobs and object storage backup jobs.