remove_duplicate_playlist_items
Remove duplicate tracks from a Spotify playlist by keeping the first occurrence and deleting later repeats. Optionally collapse same-song duplicates under different URIs, with dry-run preview.
Instructions
Remove duplicate items from a playlist: keeps the first occurrence of each track and removes later repeats. Exact URI repeats are always cleaned; pass include_relinked=true to also collapse same-song entries that appear under different URIs (remasters/relinks). Supports dry_run; removals of 10+ items ask for confirmation via elicitation. Also covers: playlist_dedupe_advanced, dedupe_playlist_plan — See also: playlist_dedupe_advanced, dedupe_playlist_plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview only: validate inputs and describe exactly what would change without performing it | |
| playlist_id | Yes | Playlist ID | |
| include_relinked | No | Also collapse same-song duplicates under different URIs (relinks/remasters). Default false — only exact URI repeats are removed. |