mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 17:23:53 +00:00
13 lines
352 B
Python
13 lines
352 B
Python
# Deletes user saved album
|
|
|
|
import spotipy
|
|
from spotipy.oauth2 import SpotifyOAuth
|
|
|
|
scope = 'user-library-modify'
|
|
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope))
|
|
|
|
uris = input("input a list of album URIs, URLs or IDs: ")
|
|
uris = list(map(str, uris.split()))
|
|
deleted = sp.current_user_saved_albums_delete(uris)
|
|
print("Deletion successful.")
|