Commands › SharePoint Online

Remove-SPOSiteManageVersionPolicyJob

SharePoint Online Microsoft.Online.SharePoint.PowerShell Remove-*

Stops processing of the in-progress manage version policy job for the given site. > [!NOTE] > This feature is currently in preview and may not be available in your tenant.

Quick start script

# Remove-SPOSiteManageVersionPolicyJob — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-SPOSiteManageVersionPolicyJob
$before | Format-List

# 3. Make the change (dry run first)
Remove-SPOSiteManageVersionPolicyJob -Identity <SpoSitePipeBind> -WhatIf
Remove-SPOSiteManageVersionPolicyJob -Identity <SpoSitePipeBind>

# 4. Verify and diff
$after = Get-SPOSiteManageVersionPolicyJob
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Remove-SPOSiteManageVersionPolicyJob [-Identity] <SpoSitePipeBind> [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-Identity SpoSitePipeBind yes Specifies the URL of the site collection.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.