# 2.8b meldingen - is het mogelijk om oude waarschuwingen/meldingen hard te verwijderen uit de database?

**URL:** https://meta.discourse.org/t/2-8b-notifications-is-hard-deleting-old-alerts-notifications-from-the-database-possible/336638
**Category:** Support
**Created:** [17 november 2024 om 22:17 UTC](https://meta.discourse.org/t/2-8b-notifications-is-hard-deleting-old-alerts-notifications-from-the-database-possible/336638 "2024-11-17T22:17:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)
#### Post date: [17 november 2024 om 22:17 UTC](https://meta.discourse.org/t/2-8b-notifications-is-hard-deleting-old-alerts-notifications-from-the-database-possible/336638/1 "2024-11-17T22:17:37Z")

</div>

It would be super helpful if there was an option to automatically hard delete notifications from the database that are older than x amount of days.

I don’t think there is a feature to be able to handle this, so just want to ask if it is safe to do manually? i.e. just simply deleting all notifications that have an older timestamp.

Something like:

```plaintext
DELETE FROM notifications
WHERE created_at < NOW() - INTERVAL '1 year';

```

Or would that likely break something?

Would appreciate any insights! 🙂

For some context:

> [@Error: integer out of range](https://meta.discourse.org/t/error-integer-out-of-range/200619):
>
> Getting this error a lot in Sidekiq (Retries and Dead lists): Jobs::HandledExceptionWrapper: Wrapped ActiveRecord::RangeError: PG::NumericValueOutOfRange: ERROR: integer out of range The jobs I’ve noticed this identical error for are: Jobs::PostAlert Jobs::ProcessPost Jobs::NotifyCategoryChange This was discussed a bit in the past here: [Feedback on the new Review Queue - #250 by markersocial](https://meta.discourse.org/t/feedback-on-the-new-review-queue/112837/250)
