Maintain control of your Microsoft Office 365 data
Post Reply
PaulNSW
Enthusiast
Posts: 51
Liked: 8 times
Joined: May 14, 2012 10:48 am
Contact:

Deleting all OneDrive backups

Post by PaulNSW »

Will this PS script delete all OneDrive backups within the repository, leaving the rest in-tact? I changed settings from another post in the forum, but just want to double-check.

Code: Select all

$repo = Get-VBORepository -Name "backup_repo_name"
$usersList = Get-VBOEntityData -Type User -Repository $repo

foreach ($user in $usersList) {
 Remove-VBOEntityData -Repository $repo -User $user -OneDrive -Confirm:$false
}

nielsengelen
Veeam Software
Posts: 3975
Liked: 800 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Deleting all OneDrive backups

Post by nielsengelen »

This will delete all the OneDrive data.

If u remove "-Confirm:$false", you will have to confirm before deletion (if you want to play safe).
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen

PaulNSW
Enthusiast
Posts: 51
Liked: 8 times
Joined: May 14, 2012 10:48 am
Contact:

Re: Deleting all OneDrive backups

Post by PaulNSW »

Great! Thanks for confirming :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Frank_190 and 12 guests