Skip to content

Commit 5656a4e

Browse files
Update README.md
1 parent 3209499 commit 5656a4e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ Data cleanup
2828
Retention is fixed at 300 days. To purge earlier by hand, the bundled `clean.sh` is all you need
2929
(data is plain per-day JSONL, so cleanup is just find+delete):
3030

31-
```bash
32-
./clean.sh 30 # delete probe data older than 30 days
31+
```
32+
# clean.sh [N] — delete pingping probe data older than N days (default 30).
33+
# Data files are plain per-day JSONL under ./data/<target>/YYYY-MM-DD.jsonl,
34+
# so cleanup is just find+delete. Run from the pingping directory.
35+
days="${1:-30}"
36+
find ./data -type f -name '20*.jsonl' -mtime +"$days" -print -delete
3337
```
3438
Latest [Releases](https://github.com/githubflyideas/pingping/releases)
3539

0 commit comments

Comments
 (0)