--- title: "Remove-VBOObjectStorageRepository" description: "This cmdlet removes an object storage repository from the Veeam Backup for Microsoft 365 infrastructure." canonical: "https://helpcenter.veeam.com/docs/vbo365/powershell/remove-vboobjectstoragerepository.html" breadcrumb: "PowerShell Reference > Veeam Backup for Microsoft 365 PowerShell Reference > Backup Infrastructure > JET-based Backup Repositories and Object Storage Repositories > Object Storage Deprecated Cmdlets > Remove-VBOObjectStorageRepository" dateModified: "2026-08-21" --- # Remove-VBOObjectStorageRepository ## Short Description Removes an object storage repository from the Veeam Backup for Microsoft 365 infrastructure. ::: note In Veeam Backup for Microsoft 365 8, this cmdlet became deprecated. Use the [`Remove-VBORepository`](remove-vborepository.md) cmdlet with the `Force:$true` parameter instead. ::: ## Syntax ``` Remove-VBOObjectStorageRepository -ObjectStorageRepository [-WhatIf] [-Confirm] [] ``` ## Detailed Description This cmdlet removes an object storage repository from the Veeam Backup for Microsoft 365 infrastructure. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

ObjectStorageRepository

Specifies an object storage repository that you want to remove from the Veeam Backup for Microsoft 365 infrastructure.

Accepts the VBOObjectStorageRepository object.

To get this object, run the Get-VBOObjectStorageRepository cmdlet.

VBOObjectStorageRepository

True

Named

True (ByValue)

Confirm

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

Default: True

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.

Default: False

SwitchParameter

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the [About Common Parameters](http://go.microsoft.com/fwlink/p/?LinkID=113216) section of Microsoft Learn. ## Examples ::: example ### Removing Object Storage Repository This example shows how to remove the `Azure` object storage repository from the Veeam Backup for Microsoft 365 infrastructure. ``` $repository = Get-VBOObjectStorageRepository -Name "Azure" Remove-VBOObjectStorageRepository -ObjectStorageRepository $repository ``` Perform the following steps: 1. Run the [`Get-VBOObjectStorageRepository`](get-vboobjectstoragerepository.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$repository` variable. 2. Run the `Remove-VBOObjectStorageRepository` cmdlet. Set the `$repository` variable as the `ObjectStorageRepository` parameter value. ::: ## Related Commands [`Get-VBOObjectStorageRepository`](get-vboobjectstoragerepository.md)