Edit

Share via


Remove-SPOSiteVersionPolicyJob

Cancels further processing of version settings update on existing document libraries on the site collection.

Syntax

Default (Default)

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

Description

Set-SPOSite cmdlet using ApplyToExistingDocumentLibraries will create a job to set version policy for existing document libraries on the site collection. This cmdlet removes the job, which stops updating the new version policy on existing libraries. The version policy already applied on existing libraries will not be reverted.

Examples

Example 1

Remove-SPOSiteVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1

Example 1 cancels further processing of the job that sets version policy for existing document libraries on the site collection.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Identity

Applicable: SharePoint Online

Specifies the URL of the site collection.

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind

Outputs

System.Object