The easiest way to do this is using your desktop Spotify app. Just select all songs using ctrl-a (or cmd-a for Macs) and hit the delete key.
If it works please don't forget to "like" and accept as solution 🙂
Hey there you,
Yeah, you! 😁
Welcome - we're glad you joined the Spotify Community!
While you here, let's have a fun game…