Try our conversational search powered by Generative AI!

Per Nergård
Jun 17, 2019
  2996
(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
Azure AI Language – Extractive Summarisation in Optimizely CMS

In this article, I demonstrate how extractive summarisation, provided by the Azure AI Language platform, can be leveraged to produce a set of summa...

Anil Patel | Apr 26, 2024 | Syndicated blog

Optimizely Unit Testing Using CmsContentScaffolding Package

Introduction Unit tests shouldn't be created just for business logic, but also for the content and rules defined for content creation (available...

MilosR | Apr 26, 2024

Solving the mystery of high memory usage

Sometimes, my work is easy, the problem could be resolved with one look (when I’m lucky enough to look at where it needs to be looked, just like th...

Quan Mai | Apr 22, 2024 | Syndicated blog

Search & Navigation reporting improvements

From version 16.1.0 there are some updates on the statistics pages: Add pagination to search phrase list Allows choosing a custom date range to get...

Phong | Apr 22, 2024

Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog