zammad-purge-inactive-users/README.md

29 lines
680 B
Markdown
Raw Permalink Normal View History

2023-12-18 17:07:30 +00:00
# zammad-purge-inactive-users
A rake task to purge Customer accounts from Zammad if they haven't had any open
tickets for 30 days.
## Installation
1. Copy the `purge_inactive_users.rake` file to `/opt/zammad/lib/tasks/`
2. Set up a cron job to run the rake task every day at 1am:
```
0 1 * * * /usr/bin/zammad run rake purge_inactive_users
```
## Usage
The rake task will run every day at 1am and delete any Customer accounts that haven't
had any open tickets for 30 days.
## Disclaimer
This rake task is provided as-is and without warranty. Use at your own risk.
## License
This rake task is released under the MIT License. See the bundled LICENSE file
for details.