--- title: "Remove-VBOEncryptionKey" description: "This cmdlet removes an encryption key for object storage repositories. You cannot remove an encryption key if it is in use by any of object storage repositories." canonical: "https://helpcenter.veeam.com/docs/vbo365/powershell/remove-vboencryptionkey.html" breadcrumb: "PowerShell Reference > Veeam Backup for Microsoft 365 PowerShell Reference > Backup Infrastructure > Object Storage Encryption > Remove-VBOEncryptionKey" dateModified: "2026-08-21" --- # Remove-VBOEncryptionKey ## Short Description Removes encryption keys. ## Syntax ``` Remove-VBOEncryptionKey -EncryptionKey [-WhatIf] [-Confirm] [] ``` ## Detailed Description This cmdlet removes an encryption key for object storage repositories. ::: note You cannot remove an encryption key if it is in use by any of object storage repositories. ::: ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

EncryptionKey

Specifies an encryption key. The cmdlet will remove this key from Veeam Backup for Microsoft 365.

Accepts the VBOEncryptionKey object.

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

VBOEncryptionKey

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 Encryption Key This example shows how to remove an encryption key. ``` $key = Get-VBOEncryptionKey -Description "Veeam Admin Key" Remove-VBOEncryptionKey -EncryptionKey $key ``` Perform the following steps: 1. Run the [`Get-VBOEncryptionKey`](get-vboencryptionkey.md) cmdlet. Specify the `Description` parameter value. Save the result to the `$key` variable. 2. Run the `Remove-VBOEncryptionKey` cmdlet. Set the `$key` variable as the `EncryptionKey` parameter value. ::: ## Related Commands [`Get-VBOEncryptionKey`](get-vboencryptionkey.md)