How to transfer my songs from my phone to my computer. I have apple for both iPhone and computer?

When I was little, I went on a buying spree for random songs, now I totally regret it. I want to transfer those songs from my iPhone to my computer and delete the songs on my computer. I sipe left on my phone which deletes them, but their still on my apple account and be easily re-download.

You can't delete songs that you have bought from your account. Once you have bought them they will always be available to download

Deleting them will take them out of sight, but they will still be on iCloud. You can just make a new account. Just DON't delete your account AND make a new one, make sure you keep both. If you make a new one, you can transfer your bought apps, songs, and pictures. Every time you're in the App Store, go on your old account, and buy all of the apps you bought previously, same with music. As for your pictures, hopefully your iCloud is backed up, so you just connect your phone to your computer, go to the app iPhoto (I'm hoping you have an Apple computer), import all of your pictures onto your computer, then sign out of your old account and sign into your new one, then just add all of the pictures on your computer to your new account. For windows, a window pops up. Go to photos and go through the same process. Or if you want to save all the work and don't have that much stuff on your phone, restore your whole phone, and start a new account all together.