Try our conversational search powered by Generative AI!

Per Nergård
Jun 17, 2019
  3012
(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
Why C# Developers Should Embrace Node.js

Explore why C# developers should embrace Node.js especially with Optimizely's SaaS CMS on the horizon. Understand the shift towards agile web...

Andy Blyth | May 2, 2024 | Syndicated blog

Is Optimizely CMS PaaS the Preferred Choice?

As always, it depends. With it's comprehensive and proven support for complex business needs across various deployment scenarios, it fits very well...

Andy Blyth | May 2, 2024 | Syndicated blog

Adding market segment for Customized Commerce 14

Since v.14 of commerce, the old solution  for adding market segment to the url is not working anymore due to techinal changes of .NET Core. There i...

Oskar Zetterberg | May 2, 2024

Blazor components in Optimizely CMS admin/edit interface

Lab: Integrating Blazor Components into Various Aspects of Optimizely CMS admin/edit interface

Ove Lartelius | May 2, 2024 | Syndicated blog