From 77c0e0cbed6aefd3a1250a2a84e4f8b09154dfd9 Mon Sep 17 00:00:00 2001 From: blarrywangmsft <129248125+blarrywangmsft@users.noreply.github.com> Date: Fri, 10 Jul 2026 09:42:56 -0700 Subject: [PATCH] Update New-SPOSiteFileVersionBatchDeleteJob.md (#1189) * Learn Editor: Update New-SPOSiteFileVersionBatchDeleteJob.md * Learn Editor: Update New-SPOSiteFileVersionBatchDeleteJob.md * Learn Editor: Update New-SPOSiteFileVersionBatchDeleteJob.md --- .../New-SPOSiteFileVersionBatchDeleteJob.md | 35 ++++--------------- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/New-SPOSiteFileVersionBatchDeleteJob.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/New-SPOSiteFileVersionBatchDeleteJob.md index 9f98a84b0..13c3305ea 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/New-SPOSiteFileVersionBatchDeleteJob.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/New-SPOSiteFileVersionBatchDeleteJob.md @@ -21,20 +21,20 @@ Queues a job to trim versions for all document libraries in a site collection. ### AutomaticTrim ``` -New-SPOSiteFileVersionBatchDeleteJob [-Identity] [-Automatic] [-BypassSiteLock] [-WhatIf] - [-Confirm] [] +New-SPOSiteFileVersionBatchDeleteJob [-Identity] [-Automatic] [-WhatIf] [-Confirm] + [] ``` ### DeleteOlderThanDays ``` -New-SPOSiteFileVersionBatchDeleteJob [-Identity] [-DeleteBeforeDays ] - [-BypassSiteLock] [-WhatIf] [-Confirm] [] +New-SPOSiteFileVersionBatchDeleteJob [-Identity] [-DeleteBeforeDays ] [-WhatIf] + [-Confirm] [] ``` ### CountLimits ``` New-SPOSiteFileVersionBatchDeleteJob [-Identity] -MajorVersionLimit - -MajorWithMinorVersionsLimit [-BypassSiteLock] [-WhatIf] [-Confirm] [] + -MajorWithMinorVersionsLimit [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -69,14 +69,6 @@ New-SPOSiteFileVersionBatchDeleteJob -Identity https://contoso.sharepoint.com/si Example 3 starts a trim job that will delete file versions in the site collection based on the version count limits. -### EXAMPLE 4 - -```powershell -New-SPOSiteFileVersionBatchDeleteJob -Identity https://contoso.sharepoint.com/sites/site1 -Automatic -BypassSiteLock -``` - -Example 4 starts a trim job with automatic version history limit algorithm and bypasses site locks. - ## PARAMETERS ### -Automatic @@ -94,21 +86,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -BypassSiteLock -The job will be allowed to bypass site lock. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DeleteBeforeDays The minimum age of file versions to trim. In other words, all file versions that are older than this number of days will be deleted. @@ -221,4 +198,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable [Get-SPOSiteFileVersionBatchDeleteJobProgress](Get-SPOSiteFileVersionBatchDeleteJobProgress.md) -[Remove-SPOSiteFileVersionBatchDeleteJob](Remove-SPOSiteFileVersionBatchDeleteJob.md) +[Remove-SPOSiteFileVersionBatchDeleteJob](Remove-SPOSiteFileVersionBatchDeleteJob.md) \ No newline at end of file