Skip to content

v0.2.0

Choose a tag to compare

@glentner glentner released this 18 Jan 04:12
· 127 commits to main since this release
v0.2.0
2ad977b

What's New

xdu-rm: Bulk File Deletion

New command for enforcing retention policies at scale. Delete millions of stale files with parallel processing.

# Delete files not accessed in 60 days with 16 threads
xdu-rm -i /var/lib/xdu/home --older-than 60 -j 16 --force

Key features:

  • Parallel deletion via -j/--jobs (default: 4 threads)
  • Safe mode (--safe): Re-stats files before deletion to protect recently accessed files
  • Dry-run (--dry-run): Preview what would be deleted
  • All query filters from xdu-find: --pattern, --partition, --min-size, --max-size, --older-than, --newer-than

Safe Mode

The --safe flag protects against stale index data. When enabled, xdu-rm verifies each file's current atime/size before deletion:

# User accessed file after indexing? It won't be deleted.
xdu-rm -i /var/lib/xdu/home --older-than 60 --safe --force

Documentation

  • Comprehensive README section for xdu-rm
  • Common workflow examples for retention policies
  • Guidance on when to use --safe mode

Testing

  • 15 new integration tests covering all xdu-rm functionality
  • Critical test: safe mode correctly protects recently accessed files