Cleanup.php for Kirby 2 – Removing old content

Hi together,
I just saw there is a cleanup.php for Kirby 3, removing old content from fields which are not available anymore. Is there a script like this for Kirby 2 as well?

Thanks
Ben

No, there isn’t.

The Kirby 3 blueprint method makes it very easy to get the fields from the blueprint for a page.

For Kirby 2, such a method doesn’t exist and you would have to parse the blueprint (although as far as I recall there was a plugin for reading from the blueprint).

If you take this, you should be able to modify the script.

Thanks, I’ll give that a try!