--- title: "Remove-VBRObjectStorageRepository" description: "This cmdlet removes object storage added as backup repositories to Veeam Backup & Replication. You can remove types the following types of these backup repositories: Amazon S3 S3 compatible Azure Blob You will not be able to connect to object..." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/remove-vbrobjectstoragerepository.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Backup Infrastructure > Object Storage Repositories > Managing Object Storage Repositories > Remove-VBRObjectStorageRepository" dateModified: "2026-08-19" --- # Remove-VBRObjectStorageRepository ## Short Description Removes object storage added as backup repository to Veeam Backup & Replication. ::: note If the four-eyes authorization is enabled, you cannot run this cmdlet. For more information, see the [Four-Eyes Authorization](https://helpcenter.veeam.com/docs/vbr/userguide/four_eyes_authorization.html?ver=13) section in the User Guide for VMware vSphere. ::: **Platform**: VMware, Hyper-V **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Remove-VBRObjectStorageRepository -Repository [-WhatIf] [-Confirm] [] ``` ## Detailed Description This cmdlet removes object storage added as backup repositories to Veeam Backup & Replication. You can remove types the following types of these backup repositories: - Amazon S3 - S3 compatible - Azure Blob You will not be able to connect to object storage after removing them from Veeam Backup & Replication. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Repository

Specifies a backup repository that you want to remove.

Accepts the VBRObjectStorageRepository object. To get this object, run the Get-VBRObjectStorageRepository cmdlet.

VBRObjectStorageRepository[]

True

Named

True (ByValue)

Confirm

Defines whether the cmdlet displays a prompt that asks if the user is sure that they want 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 whether the cmdlet writes a message that describes the effects of running the cmdlet without actually performing any action.

SwitchParameter

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Examples ::: example ### Removing All S3 Compatible Object Storage Added as Backup Repositories This example shows how to remove all S3 compatible object storage added as backup repositories from Veeam Backup & Replication. ``` $repository = Get-VBRObjectStorageRepository -Type AmazonS3Compatible Remove-VBRObjectStorageRepository -Repository $repository ``` Perform the following steps: 1. Run the [`Get-VBRObjectStorageRepository`](get-vbrobjectstoragerepository.md) cmdlet. Set the `AmazonS3Compatible` option for the `Type` parameter. Save the result to the `$repository` variable. 2. Run the `Remove-VBRObjectStorageRepository` cmdlet. Set the `$repository` variable as the `Repository` parameter value. ::: ## Related Commands [`Get-VBRObjectStorageRepository`](get-vbrobjectstoragerepository.md)