--- title: "Remove-VSBSession (obsolete)" description: "This cmdlet removes a specified SureBackup job session from Veeam Backup & Replication." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/remove-vsbsession.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Obsolete Cmdlets > Remove-VSBSession (obsolete)" dateModified: "2026-08-19" --- # Remove-VSBSession ## Short Description Removes a specified SureBackup job session from Veeam Backup & Replication. ::: note This cmdlet is obsolete and not supported. ::: **Platform**: VMware, Hyper-V ## Syntax ``` Remove-VSBSession [-Sessions] [-WhatIf] [-Confirm] [] ``` ## Detailed Description This cmdlet removes a specified SureBackup job session from Veeam Backup & Replication. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Sessions

Specifies the SureBackup job session you want to remove.

You can assign multiple sessions to this object.

Accepts the CSbSession[] object. To get this object, run the Get-VSBSession cmdlet.

CSbSession[]

True

0

True (ByPropertyName, ByValue)

Confirm

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

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). ## Examples ::: example ### Example 1. Removing Selected SureBackup Sessions [Using Pipeline] This example shows how to remove the `Winserver SureJob` and `Mailserver SureJob` SureBackup sessions. ``` Get-VSBSession -Name "Winserver SureJob", "Mailserver SureJob" | Remove-VSBSession ``` Perform the following steps: 1. Run the [`Get-VSBSession`](get-vsbsession.md) cmdlet. Specify the `Name` parameter value. 2. Pipe the cmdlet output to the `Remove-VSBSession` cmdlet. ::: ::: example ### Example 2. Removing Selected SureBackup Sessions [Using Variable] This example shows how to remove the `Winserver SureJob` and `Mailserver SureJob` SureBackup sessions. ``` $suresession = Get-VSBSession -Name "Winserver SureJob", "Mailserver SureJob" Remove-VSBSession -Sessions $suresession ``` Perform the following steps: 1. Run the [`Get-VSBSession`](get-vsbsession.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$suresession` variable. 2. Run the `Remove-VSBSession` cmdlet. Set the `$suresession` as the `Sessions` parameter value. ::: ## Related Commands [`Get-VSBSession`](get-vsbsession.md)