clean_backup_artifacts
Delete non-library backup files like listening sessions, playlist pre-images, and playback bookmarks while keeping library backups untouched. Preview by default before committing.
Instructions
Delete the NON-library files sharing SPOTIFY_MCP_BACKUP_DIR with your library backups: closed listening sessions (listening-session-*.json), playlist write pre-images (playlistops-pre-*.json) and legacy or migrated playback bookmarks (playback-bookmark-*.json). Library backups and their .meta.json sidecars are never touched — use delete_backup, and naming one here is refused. These files are local and gone for good once deleted. Preview by default; executing is confirmation-gated and refused when the client cannot prompt (SPOTIFY_MCP_CONFIRM=never bypasses). Ages are mtimes, and the default window is SPOTIFY_MCP_BACKUP_ARTIFACT_RETENTION_DAYS — separate from the library window. Unrecognised files are listed, not deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | File names to delete instead of a sweep. Each must be inside the backup directory and match a known family; `family` and `older_than_days` then do not apply. | |
| family | No | Which non-library family to act on. Default all. | |
| dry_run | No | Preview only: perform the read side and return a PLAN without changing anything. Default true — pass dry_run=false to commit. | |
| older_than_days | No | Age floor in days. 0 = no age filter. Omit to use the retention window. | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |