# Entfernen spezifischer Mitarbeiteraktionsprotokolle über die Konsole

**URL:** <https://meta.discourse.org/t/removing-specific-staff-action-logs-using-the-console/312393>\
**Category:** Development\
**Tags:** rails-console\
**Created:** [17. Juni 2024 um 13:45 UTC](https://meta.discourse.org/t/removing-specific-staff-action-logs-using-the-console/312393 "2024-06-17T13:45:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Isambard](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@Isambard](https://meta.discourse.org/u/Isambard)\
**Post date:** [17. Juni 2024 um 17:11 UTC](https://meta.discourse.org/t/removing-specific-staff-action-logs-using-the-console/312393/3 "2024-06-17T17:11:15Z")

</div>

Ich dachte, es wäre so etwas wie:

```ruby
UserHistory.where("created_at > ?", date).where(and staffuser=xyz, and action=edit post).destroy_all

```

aber mit der richtigen Syntax 😛

---

_[View the full topic](https://meta.discourse.org/t/removing-specific-staff-action-logs-using-the-console/312393)._
