-
- Service Provider
- Posts: 40
- Liked: 13 times
- Joined: Feb 23, 2010 8:22 am
- Full Name: Stig Hanssen
- Contact:
Backupdata housekeeping
Is there a way to automate deletion of backupdata for users with removed licenses? For example a powershell script that can identify users without a license and then remove the backupdata if it is older than xx days?
-
- Product Manager
- Posts: 10278
- Liked: 2746 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Backupdata housekeeping
Hi Stig
We don't have an automatic feature built in to remove backup data from users without a license. Our retention policy job handles such backup data, but only after the specified retention period is over and if the backups are not immutable.
If you want to delete user data earlier, you can build your own PowerShell script. The command you need to use is:
https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=80
Allow me to ask a question to better understand the business reason behind the request: Why do you require such a feature to remove old backup data? Is it to save backup storage, or are there local government policies that mandate the deletion of backups for former employees?
Best,
Fabian
We don't have an automatic feature built in to remove backup data from users without a license. Our retention policy job handles such backup data, but only after the specified retention period is over and if the backups are not immutable.
If you want to delete user data earlier, you can build your own PowerShell script. The command you need to use is:
https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=80
Code: Select all
Remove-VBOEntityData
Best,
Fabian
Product Management Analyst @ Veeam Software
-
- Service Provider
- Posts: 40
- Liked: 13 times
- Joined: Feb 23, 2010 8:22 am
- Full Name: Stig Hanssen
- Contact:
Re: Backupdata housekeeping
Thank you for the information. I am a Service Provider, and the customer wants to keep things clean, and also save backup storage.
-
- Veeam Legend
- Posts: 475
- Liked: 128 times
- Joined: Apr 22, 2022 12:14 pm
- Full Name: Danny de Heer
- Contact:
Re: Backupdata housekeeping
Hi Panzer,
I created a script just for removing items from a larger repository: https://github.com/VeeamHub/powershell/ ... Repository
I created a script just for removing items from a larger repository: https://github.com/VeeamHub/powershell/ ... Repository
VMCE / Veeam Legend 2*
-
- Veeam Legend
- Posts: 368
- Liked: 114 times
- Joined: Nov 02, 2020 2:48 pm
- Full Name: Manuel Rios
- Location: Madrid, Spain
- Contact:
Re: Backupdata housekeeping
Take care about Remove-VBOEntityData , switch -Organization is not supported for Object Storage and you can mass delete all your data if you not properly filter items.
Service Provider | VMCE
-
- Service Provider
- Posts: 94
- Liked: 16 times
- Joined: Jan 02, 2024 9:13 am
- Full Name: Pat
- Contact:
Re: Backupdata housekeeping
I relied on this script quite heavily in the past to clean up old client data, but unfortunately it doesn't seem to work anymore after upgrading Veeam365 to version 8.mjr.epicfail wrote: ↑Oct 02, 2024 2:14 pm Hi Panzer,
I created a script just for removing items from a larger repository: https://github.com/VeeamHub/powershell/ ... Repository
I haven't had time to look into what's broken yet, but after selecting the org to delete and enabling delete all data, it fails to find any users and never gets as far as asking for confirmation to delete the data.
-
- Veeam Legend
- Posts: 475
- Liked: 128 times
- Joined: Apr 22, 2022 12:14 pm
- Full Name: Danny de Heer
- Contact:
Re: Backupdata housekeeping
Sorry,
yes this script is only tested in V7.0 and 7A. (should also be in the readme
)
I didnt have the time to update my lab to v8, especially with all the bugs that are still lingering.
I'll check whats needed to make it work on v8, when I've got some more free time.
yes this script is only tested in V7.0 and 7A. (should also be in the readme

I didnt have the time to update my lab to v8, especially with all the bugs that are still lingering.
I'll check whats needed to make it work on v8, when I've got some more free time.
VMCE / Veeam Legend 2*
Who is online
Users browsing this forum: No registered users and 47 guests