ChangeSetItem clean up

Silverstripe Version: 4.13

Question:
Just wondering if there’s a task I can run to clean up the following tables:

  • ChangeSet
  • ChangeSetItem
  • ChangeSetItem_ReferencedB

During the course of development these tables have grown very large and I’d like to prune anything not needed before going live. As I have many pages in the SiteTree that I’d like to carry through to the live version, it’s not just a simple matter of starting with a fresh database… I’m assuming it’s not a good idea to just empty these tables!

https://github.com/brettt89/silverstripe-garbage-collector may be of interest to you.