prune_old_snapshots
Delete old playlist snapshots, keeping the newest N per playlist and optionally removing those older than a set number of days. Use dry-run to preview before committing.
Instructions
Delete old local snapshots, keeping the newest N per playlist and optionally dropping those older than a cutoff; dry_run=true (default) only reports what would go Snapshot guide: take_playlist_snapshot (create), list_saved_snapshots (list), read_playlist_snapshot (read), diff_playlist_snapshots / snapshot_new_tracks / snapshot_removed_tracks (diff), restore_playlist_from_snapshot / restore_playlist_plan (restore).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview only: perform the read side and return a deterministic PLAN without writing/deleting anything. Default true — pass false to commit. | |
| playlist | No | Restrict pruning to this playlist (ID or URI) | |
| keep_last | No | Snapshots to KEEP per playlist (default 5) | |
| older_than_days | No | Additionally prune snapshots older than this many days | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |