Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Deleting Old SharePoint Online 2013 Document Versions

Posted on 2015-02-23
4
Medium Priority
?
125 Views
Last Modified: 2015-02-28
I have many document libraries in SharePoint Online 2013 which is part of Office 365.  Users save hundreds of versions of very large PowerPoint files and I would like to go and delete all but the latest version from some older libraries where we no longer need a version history.  Is there a way to do this either in PowerShell or with some tool in the administrator menu?  I don't want to do it by hand.

We have a midsize business license.
0
Comment
Question by:Jason Schlueter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 32

Expert Comment

by:Jamie McAllister MVP
ID: 40626594
There's a script here to iterate Office 365 sites and report which has versioning turned on;

http://www.sharepointnutsandbolts.com/2013/12/Using-CSOM-in-PowerShell-scripts-with-Office365.html

This is the basis of what you need, then it depends how selective you want to be. I might adapt that to find where versioning is enabled, then switch it off, then on again. That would clear the version history and save space.

Number of versions and further logic could be built in of course.
0
 
LVL 5

Author Comment

by:Jason Schlueter
ID: 40626832
I love the idea of calling the DLLs but we have no on-prem SharePoint server so I can't get to those libraries.
0
 
LVL 32

Accepted Solution

by:
Jamie McAllister MVP earned 1500 total points
ID: 40626879
You can do web service calls instead but it's more work.

Failing that the DLLs can be obtained from MSDN subscription or friendly consultants.
0
 
LVL 5

Author Closing Comment

by:Jason Schlueter
ID: 40637795
Thanks for the suggestion and the blog post.  The real answer might be a policy change that will make a few managers groan.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
A walk-through example of how to obtain and apply new DID phone numbers to your cloud PBX enabled users that are configured in Office 365. Whether you have 1, 10 or 100+ users in your tenant, it's quite easy to get them phone-enabled and making/rece…
how to add IIS SMTP to handle application/Scanner relays into office 365.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question