docs: example SQL to delete old events

Added SQL Query example to delete events older than 30 days.
This commit is contained in:
Václav Navrátil 2023-07-17 18:25:14 +02:00 committed by Greg Heartsfield
parent 4adad4c3a9
commit 34f497a650

View File

@ -112,7 +112,8 @@ seen" policy.
```console
PRAGMA foreign_keys = ON;
TODO!
DELETE FROM event WHERE first_seen < CAST(strftime('%s', date('now', '-30 day')) AS INT);
```
### Delete Profile Events with No Recent Events