--- title: "Clear-VBRManagedByAgentPolicyCache" description: "Removes cache from the protected computers. Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet removes backup cache from protected computers." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/clear-vbrmanagedbyagentpolicycache.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Veeam Agent Management > Working with Veeam Agent Backup Jobs and Policies > Veeam Agent Management Backup Jobs > Clear-VBRManagedByAgentPolicyCache" dateModified: "2026-08-19" --- # Clear-VBRManagedByAgentPolicyCache ## Short Description Removes cache from the protected computers. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Clear-VBRManagedByAgentPolicyCache [-Policy] [-RunAsync] [-WhatIf] [-Confirm] [] ``` ## Detailed Description This cmdlet removes backup cache from protected computers. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Policy

Specifies a Veeam Agent backup policy. The cmdlet will remove backup cache from computers that are processed by this policy.

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

VBRComputerBackupJob[]

True

0

True (ByPropertyName, ByValue)

RunAsync

Defines that the command returns immediately without waiting for the task to complete.

SwitchParameter

False

Named

False

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). ## Output Object [`VBRSession`](vbrsession.md) ## Examples ::: example ### Removing Backup Cache from Protected Computers This example shows how to remove backup cache from protected computers that are processed by the `WinSrv2049` Veeam Agent backup policy. ``` $policy = Get-VBRComputerBackupJob -Name "WinSrv2049" Clear-VBRManagedByAgentPolicyCache -Policy $policy ``` Perform the following steps: 1. Run the [`Get-VBRComputerBackupJob`](get-vbrcomputerbackupjob.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$policy` variable. 2. Run the `Clear-VBRManagedByAgentPolicyCache` cmdlet. Set the `$policy` variable as the `Policy` parameter value. ::: ## Related Commands [`Get-VBRComputerBackupJob`](get-vbrcomputerbackupjob.md)