Easily delete your YouTube Music library
Project description
ytmusic-deleter: Delete your YouTube Music library
This is the command-line interface for ytmusic-deleter. For the graphical Windows .exe edition, visit the main page
Command-line interface install using Python / PIP
The CLI version of ytmusic-deleter is for advanced users who would rather use a command-line or are running macOS.
For the graphical Windows .exe edition (or Linux), visit the main page
Installtion instructions of this command-line interface:
- Install Python. Make sure it is available on your PATH.
- Open a command prompt and type
pip install ytmusic-deleter
. Use a virtual environment if you're familiar with the process. - Run ytmusic-deleter by simply entering
ytmusic-deleter
at the command line.
Usage
When you run ytmusic-deleter
with no parameters, you will see see the usage information. There are several commands available.
delete-uploads
: Delete all tracks that you have uploaded to your YT Music library.
Use the
--add-to-library
or-a
option to add each album or song to your library from YouTube Music's online catalog before deleting it from your uploads. If a match could not be found, the album or song will remain in your uploads. When using the-a
option, you can also enable fuzzy matching with--fuzzy
or-f
. This is a less strict matching algorithm that will find more matches, but may find inaccurrate matches in its current experimental state. Use the--score-cutoff
or-s
option to raise or lower the default matching score cutoff of 90. A value closer to 100 will be more strict, and a value closer to 0 will be less strict.
remove-library
: Remove all tracks that you have added to your library from within YouTube Music.
unlike-all
: Reset all Thumbs Up ratings back to neutral.
delete-playlists
: Delete all manually created YT Music playlists.
delete-all
: Combo command that will run delete-uploads
, remove-library
, unlike-all
, and delete-playlists
.
Non-deletion commands:
sort-playlist
: Sort a playlist alphabetically by artist and then by song title.
Use the
--shuffle
or-s
option to shuffle the playlist instead of sorting it.
Examples
Getting help:
ytmusic-deleter --help
This will print the usage information for ytmusic-deleter
and exit.
You can use the --help
argument to print usage information for subcommands as well, as follows:
ytmusic-deleter delete-uploads --help
Delete all your uploads:
ytmusic-deleter delete-uploads
Delete all your uploads but add them to your YouTube Music library first:
ytmusic-deleter delete-uploads -a
Remove all your library tracks (not uploads):
ytmusic-deleter remove-library
Reset all Thumbs Up ratings back to neutral:
ytmusic-deleter unlike-all
Delete all your personally created playlists:
ytmusic-deleter delete-playlists
Remove everything (uploads, library tracks, playlists, and unlike all songs):
ytmusic-deleter delete-all
Sort a playlist called Workout Jams:
ytmusic-deleter sort-playlist "workout jams"
Extra options
These supplemental options are unlikely to be helpful for most use cases and are mainly to support the GUI version.
Options:
--version Show the version and exit.
-l, --log-dir TEXT Custom directory in which to write log files,
instead of current working directory.
-c, --credential-dir TEXT Custom directory in which to locate/create JSON
credential file, instead of current working
directory
-p, --static-progress Log the progress statically instead of an
animated progress bar
Troubleshooting
ytmusic-deleter: command not found
or
'ytmusic-deleter' is not recognized as an internal or external command,
operable program or batch file.
Make sure you ran pip install ytmusic-deleter
to install ytmusic-deleter. If you're still getting this error, try closing and re-opening your command prompt.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ytmusic_deleter-2.4.6.tar.gz
.
File metadata
- Download URL: ytmusic_deleter-2.4.6.tar.gz
- Upload date:
- Size: 31.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bae1ac33f1fcfc968e1282d60b0692e84cb865cada9a9391023955c6b3206208 |
|
MD5 | 8dd1f8f12cc017a8ca14a1b4b14654ce |
|
BLAKE2b-256 | 0b6ffe2ecd6c1188d17766aa1ebae9478842d44c2e2c45ab944ac23da07d7c94 |
File details
Details for the file ytmusic_deleter-2.4.6-py3-none-any.whl
.
File metadata
- Download URL: ytmusic_deleter-2.4.6-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3b05869756ee66c7eff4b3ff62fcf0ef2277145913247affd41add16bf9d385 |
|
MD5 | ec53d5b2dafb89e92d6347243526510a |
|
BLAKE2b-256 | 3509299d692c1556900313445b3372059c5279b81c539e7005b20214131bdc17 |