--- title: "Remove-VBRDefaultGateway" description: "This cmdlet removes a selected cloud default gateway." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/remove-vbrdefaultgateway.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Veeam Cloud Connect > Veeam Cloud Connect Failover Plans > Remove-VBRDefaultGateway" dateModified: "2026-08-19" --- # Remove-VBRDefaultGateway ## Short Description Removes default cloud gateways. **Platform**: VMware, Hyper-V **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Remove-VBRDefaultGateway -Gateway [-WhatIf] [-Confirm] [] ``` ## Detailed Description This cmdlet removes a selected cloud default gateway. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Gateway

Specifies the default cloud gateway you want to remove.

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

VBRDefaultGateway

True

Named

True (ByPropertyName, ByValue)

Confirm

Defines that the cmdlet will display a prompt that asks if you want to continue running the command.

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

`` 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). ## Output Object [`VBRDefaultGateway`](vbrdefaultgateway.md) ## Examples ::: example ### Removing Default Gateway [Using Pipeline] This example shows how to remove a default gateway. ``` $configuration = Get-VBRDefaultGatewayConfiguration $configuration.DefaultGateway | Remove-VBRDefaultGateway ``` Perform the following steps: 1. Run the [`Get-VBRDefaultGatewayConfiguration`](get-vbrdefaultgatewayconfiguration.md) cmdlet. Save it to `$configuration` variable. 2. Get the default gateway using the `DefaultGateway` property of the `$configuration` variable. Pipe the result to the `Remove-VBRDefaultGateway` cmdlet. ::: ## Related Commands [`Get-VBRDefaultGatewayConfiguration`](get-vbrdefaultgatewayconfiguration.md)