Jump to:

21282 Posts in 5730 Topics by 2601 members

General Questions

SilverStripe Forums » General Questions » How to remove a large number of pages.

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 355 Views
  • bekkevos
    Avatar
    Community Member
    2 Posts

    How to remove a large number of pages. Link to this post

    Is it possible to remove a large number of published pages in one go? Either in Silverstripe or in PHPadmin. Also, is it possible to remove all the different versions of a page except the live one?

  • martimiz
    Avatar
    Forum Moderator
    875 Posts

    Re: How to remove a large number of pages. Link to this post

    There are tho two batch actions 'Delete from draft site' and 'Delete from published site'. Check out the 'Batch actions' button, top left of the CMS, and select the pages you want to remove.

    There is no batch action to delete a bunch of previous page versions. If you want to remove all previous versions, you can empty the database tables directly: tables with name-extension _versions (like SiteTree_versions) contain previous versions, emptying them won't affect the live pages, but I'd recommend making a backup of the database in advance.

    Also there is a SanitizeTask tool here that might help you, but I haven't tried it yet:

    https://github.com/silverstripe-labs/silverstripe-recipes/blob/master/model/tools/

  • bekkevos
    Avatar
    Community Member
    2 Posts

    Re: How to remove a large number of pages. Link to this post

    Thanks martimiz,

    that's exactly what i was looking for!

    355 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.