Per Nergård
Jun 17, 2019
  3171
(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
Creating Custom Feed Options for Optimizely Forms Selection Elements

Optimizely Forms is a versatile tool for building forms used in registrations, job applications, surveys, and much more. These forms can include a...

Nahid | Aug 12, 2024

How to hide Reports from the global menu in Optimizely CMS

Reports section is available by default to all users who are members of the WebEditors group as the authorization policy of that MenuItem is set to...

Bartosz Sekula | Aug 8, 2024 | Syndicated blog

Azure Function App for PDF Creation With Syncfusion .Net PDF Framework

We have a couple of use cases that require internal and external users to print content in PDF format. We've offloaded this functionality from the...

KennyG | Aug 8, 2024

Changes to PictureRenderer.Optimizely

In version 3.2 of PictureRenderer.Optimizely it is possible to add any attribute to the rendered img element. This makes it possible to add e.g....

Erik Henningson | Aug 2, 2024 | Syndicated blog

Rolling Restart Revolution!

I'm not sure if anyone has written about this yet or not. If so, I'm sorry. But we discovered something this morning where the heavens opened up an...

KennyG | Aug 1, 2024

Optimizely SaaS CMS Content Modeling

Content modeling for websites can be considered as much an art as a science. While we may look at content modeling as a process of defining and...

Patrick Lam | Aug 1, 2024