Skip to main content

Open Source #SharePoint File Clean-Up Tool

Hello SharePoint Community. Don't we just love sharing code sometimes? Well I figured this might help someone somewhere in the community. First off, some basic house keeping.
  • Are you still running #Microsoft #SharePoint Server 2010?
  • Are you looking at migrating/upgrading to a more recent version of SharePoint but you would like to first clean up your environment and potentially reduce the size of your content databases?
  • Did you activate version history on some of your document libraries?
  • Did you forget to set the maximum limit of versions to retain on some of your documents libraries?
  • Do you wonder why some document libraries have grown so much in size and yet they don't have a lot of documents stored in them?

If you answered yes to any of the above questions, then this tool might be useful for you.
I've decided to open source a tool I created sometime back that would clean up your SharePoint 2010 stored file's version history. Feel free to download it on GitHub here

To give you a bit more information of what the tool does. This is a tool for cleaning up version history that has span out of control and resulted in large size document libraries. SharePoint 2010 had no shredded storage, therefore, each version retained the full document size. Shredded storage was only introduced in SharePoint 2013. The tool is a combination of #CSharp and #PowerShell. I packaged the solution as a WSP, deploy-able to the SharePoint Farm and the clean up happens under a #SharePointTimerJob, activated as a farm feature while the parameters like how many versions to retain or whether a site collection should be skipped for clean up is activated as a site collection feature.

In a situation where you are looking to upgrade your SharePoint farm, some might say, "Well since shredded storage is in SharePoint 2013 on-wards, then I wont need this tool", while others will say "Wait a minute, if I move my large sized document libraries, shredded storage in SharePoint 2013 wont magically shrink them now will it?"

If you are interested, head over to the #GitHub location where I have written down a step-by-step deployment guide and download the tool. As the tool is open source, I will great appreciate any feedback that you may have, including the negative ones ;)
I will also be making open source a SharePoint Library #Migration tool soon. Look out for it.

#HappySharePointCoding

Comments

Popular posts from this blog

SharePoint: How to create a custom action to open Word Documents using "Edit in Microsoft Word".

Imagine you have a SharePoint custom search webpart, and on your search results, you return word documents, you will obviously want to at times be able to open them in your MS Word client program for editing. So basically, depending on your office client installed on your local machine, there are 2 different approaches that can be made for Office 2003 and Office 2007/10, using the same function " editDocumentWithProgID2 ". For Office 2003: - If your document libraries versioning settings have got "Require Check out" ticked, then you will first want to check out the document using: onclick ="CheckoutviaXmlhttp(‘{SiteURL}’, ‘{DocumentDownloadURL}’)" - Then to open the document, you use: onclick =" return editDocumentWithProgID2(‘ {DocumentDownloadURL} ’, ”, ‘SharePoint.OpenDocuments’, ’1′,’ {SiteURL} ’, ’0′);" href ="#" - and now combining the above 2 actions into one clickable action: onclick ="CheckoutviaXmlhttp(‘ {SiteURL} ’, ‘ {...

Zambia's first K2 BlackPoint roll-out

Reporting to you live from Code|Influence... My colleague and I have been managing our organization's SharePoint infrastructure for some time now and we have just rolled out the first K2 BlackPoint in the country, intended mostly for SharePoint workflow developments.

How to Scope your SharePoint Projects

The "SharePoint project scope" is all of the things that must be produced to complete a SharePoint project. These 'things' are called deliverables and you need to describe them in depth as early in the SharePoint project as possible, so everyone knows what needs to be produced. Take these 5 Steps to scope your SharePoint projects: Step 1: Set the Direction Start off by setting the direction for the SharePoint project. Do you have an agreed SharePoint project Vision, Objectives and Timeframes? Are they specified in depth and has your customer agreed to them? Does everyone in the SharePoint project team truly understand them and why they are important? Only by fixing the SharePoint project direction can you truly fix the SharePoint project scope. Step 2: Scope Workshops The best way to get buy-in to your SharePoint project scope is to get all of the relevant stakeholders to help you define it. So get your SharePoint project sponsor, customer and other stakeholders in a ...