Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

PowerShell Script to delete VersionHistory from OneDrive

Notifications You must be signed in to change notification settings

Rhilip/OneDrive_VersionHistoryCleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Use rclone cleanup OneDrive:/path better new since rclone v1.52. And this project is deprecated and archived since now

OneDrive VersionHistory Cleaner

MOD of PowerShell Script from Delete all previous file versions in a library by Rhilip.

!!! Notice All Version History will remove without confirm and no Recovery bin used !!!

Edit those lines Before Run

#Enter the data
$Url = "https://TODO-my.sharepoint.com/personal/TODO_SITE_NAME"

$username = "TODO_USERNAME"
$AdminPassword = ConvertTo-SecureString -String "TODO_PASSWORD" -AsPlainText -Force
#$AdminPassword=Read-Host -Prompt "Enter password" -AsSecureString

#$ListTitle = "文档"
$ListTitle="Documents"

About

PowerShell Script to delete VersionHistory from OneDrive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published