Try our conversational search powered by Generative AI!

Per Nergård
Jun 17, 2019
  3043
(7 votes)

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

Comments

Jake Jones
Jake Jones Jun 17, 2019 03:22 PM

Pretty cool!

Jake Jones
Jake Jones Jun 17, 2019 03:22 PM

Pretty cool!

Eric
Eric Jun 18, 2019 08:34 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.

Deepa Puranik
Deepa Puranik Mar 25, 2022 08:25 AM

Hello,

Is it available for MVC framework?

Jeremy Brown
Jeremy Brown Jun 12, 2023 01:01 PM

Based on this nice solution from Per, I have created something similar for Optimizely CMS 12:
Content Cleaner Tool for Optimizely CMS 12

Per Nergård
Per Nergård Sep 29, 2023 10:43 AM

Thanks for doing that Jeremy!

Please login to comment.
Latest blogs
From Procrastination to Proficiency: Navigating Your Journey to Web Experimentation Certification

Hey there, Optimizely enthusiasts!   Join me in celebrating a milestone – I'm officially a certified web experimentation expert! It's an exhilarati...

Silvio Pacitto | May 17, 2024

GPT-4o Now Available for Optimizely via the AI-Assistant plugin!

I am excited to announce that GPT-4o is now available for Optimizely users through the Epicweb AI-Assistant integration. This means you can leverag...

Luc Gosso (MVP) | May 17, 2024 | Syndicated blog

The downside of being too fast

Today when I was tracking down some changes, I came across this commit comment Who wrote this? Me, almost 5 years ago. I did have a chuckle in my...

Quan Mai | May 17, 2024 | Syndicated blog

Optimizely Forms: Safeguarding Your Data

With the rise of cyber threats and privacy concerns, safeguarding sensitive information has become a top priority for businesses across all...

K Khan | May 16, 2024