Keeps a backup folder to a fixed size by removing the oldest archives first. Use when the backup disk is filling up, when the user asks how many backups are kept, or when a retention policy has to be applied.
Installs into .claude/skills of the current project.
Are you the author of Backup Pruner?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/letsloose501-backup-pruner)
---
name: backup-pruner
description: Keeps a backup folder to a fixed size by removing the oldest archives first. Use when the backup disk is filling up, when the user asks how many backups are kept, or when a retention policy has to be applied.
version: 2.0.3
---
# Backup pruner
1. List the archives in the folder the user named, oldest first.
2. Keep the newest seven daily and the newest four weekly archives.
3. Move the rest into `to-delete/` rather than deleting them.