``[p]playlist dedupe`` can be used to remove duplicated tracks from a playlist.