# Can we delete all 'Automatically Bumped' msgs in one go?

**URL:** https://meta.discourse.org/t/can-we-delete-all-automatically-bumped-msgs-in-one-go/251038
**Category:** Support
**Created:** [January 8, 2023, 8:59am UTC](https://meta.discourse.org/t/can-we-delete-all-automatically-bumped-msgs-in-one-go/251038 "2023-01-08T08:59:54Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![simonk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonk/32/247950_2.png) [@simonk](https://meta.discourse.org/u/simonk)
#### Post date: [January 13, 2023, 12:04pm UTC](https://meta.discourse.org/t/can-we-delete-all-automatically-bumped-msgs-in-one-go/251038/15 "2023-01-13T12:04:43Z")

</div>

I haven’t done much with [the plugin API](https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648#the-pluginapi-25), but I did see that there is a method that can add classes to small action posts:

> <https://github.com/discourse/discourse/blob/ce6335693a4a110848a1bde87f245549d6f626ad/app/assets/javascripts/discourse/app/lib/plugin-api.js#L938>

So I made a theme component that included this in the **Head** section:

```js
<script type="text/discourse-plugin" version="1.6.0">
  api.addPostSmallActionClassesCallback(post => {
    return ["small-action-" + post.actionCode]
  });
</script>

```

…and this in the **CSS** section:

```css
.small-action.small-action-autobumped {
  display: none;
}

```

…and the autobumped message disappeared!

I haven’t done any other testing, so I don’t know if there would be any other side effects. It’s possible that `small-action-[...]` classes might clash somewhere else in the application, in which case you should choose a prefix that is guaranteed to be unique.

---

_[View the full topic](https://meta.discourse.org/t/can-we-delete-all-automatically-bumped-msgs-in-one-go/251038)._
