Hi all,
So far our ENV has a large document library with over 10, 000 files, each file is associated with over hundreds version history, wondering there is way to get rid of version histories for each files, which is created by specific account by using flow automation?
Thanks in advance
Rose
Hi Okeks and SudeepGhataNZ,
Let me recap my objective, since we have lots version history is generated by four specific accounts every day, wondering is flow can get rid of those unnecessary version history records to save storage space by running every weekly or monthly, quarterly?
thanks in advance.
Rose
I haven't tried it myself but there seems to be a way to delete a specific version if you know the version number unsing the Sharepoint API with the Send HTTP request to Sharepoint.
REST API end point for deleting specific version of a SharePoint Document - Microsoft Q&A
You don't need to turn off versioning completely. You can specify how many versions you want to retain.
I don't think there is an Out of box action that will let you delete versions. Even the SharePoint REST API only lets you get or restore versions.
A quick search shows some premium action that might allow you to do that
Hi SudeepGhatakNZ,
Thanks for your quick feedback, but our business needs version history to track all records, we just need to get rid of some version history is generated daily by specific account. Is there flow can make this happen?
thanks,
Well instead of deleting the version, I suggest you just turn off version history.
Enable and configure versioning for a list or library (microsoft.com)
I think Powershell will be a better choice for something like this.