Views: 615
Number of votes: 7
Average rating:

Find and delete content based on type

Another blog post and another admin mode plugin..

From time to time I have had the need to delete content for specific types. It could be a cleanup case before using a dev database as UAT or maybe we wan't to discard some content type.

In general content of a specific types tend to be all over the place especially with images and blocks so this can be a tedious process. So I whipped together a small admin mode plugin that lets you select a type and get a list of all content-instances and lets you delete all or selected instances of that type. Nothing fancy but it does it't job.

You can find the code over at my Gist and it looks lite this.

Jun 17, 2019

Jake Jones
(By Jake Jones, 6/17/2019 5:22:40 PM)

Pretty cool!

Jake Jones
(By Jake Jones, 6/17/2019 5:22:46 PM)

Pretty cool!

Eric
(By Eric, 6/18/2019 10:34:59 AM)

Nice work! :) A sugestion for a feature is to be able to choose a specific site or node in the page tree as well. With large installations it is needed... but again nice plugin.

Please login to comment.