# Introduce a way to also permanently delete the sensitive info from the staff logs

**URL:** <https://meta.discourse.org/t/introduce-a-way-to-also-permanently-delete-the-sensitive-info-from-the-staff-logs/292546>\
**Category:** UX\
**Tags:** completed, permanently-delete\
**Created:** [November 15, 2023, 1:53pm UTC](https://meta.discourse.org/t/introduce-a-way-to-also-permanently-delete-the-sensitive-info-from-the-staff-logs/292546 "2023-11-15T13:53:26Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [July 23, 2024, 8:00am UTC](https://meta.discourse.org/t/introduce-a-way-to-also-permanently-delete-the-sensitive-info-from-the-staff-logs/292546/7 "2024-07-23T08:00:52Z")

</div>

> [@Lhc\_fl](#):
>
> Anyway, the log can be also deleted with `rails c` like this:
> 
> ```plaintext
> UserHistory.where(post_id: xxx).destroy_all
> # or topic:
> UserHistory.where(topic_id: xxx).destroy_all
> 
> ```

This looks like it will delete all user\_histories records associated with the post or topic id, rather than overwrite just the details section or limit the destructive action to only the permanently deleted log?

---

_[View the full topic](https://meta.discourse.org/t/introduce-a-way-to-also-permanently-delete-the-sensitive-info-from-the-staff-logs/292546)._
