mocp:tldr:46b51
The command "mocp --clear" is used to clear the current playlist in the Music On Console (MOC) player.
MOC is a lightweight, powerful, and easy-to-use command-line audio player for Unix-like systems. It allows you to play audio files from your local system while providing features like playlists, shuffle, repeat, and more.
When you execute the "mocp --clear" command, it instructs MOC to remove all the items from the current playlist. This means that any songs or audio files that were queued to play next will be removed, and the playlist will be empty.
Clearing the playlist can be useful if you want to start fresh and add new songs or if you no longer want to play the current queue of tracks, allowing you to create a new playlist from scratch.