I want to take my music off my iphone 5?

My music isn't working and i wish to delete it all but keep it on my itunes on my macbook. I understand you can swipe each song and click delete but i have well over 1000 songs, is there anyway i can do it from my itunes, eg, remove all songs from this iphone etc.

Yes you can. You need to "Manually manage" your phone to itunes. I assume that you have your phone synced to itunes so it directly syncs everything. When you connect your phone to your mac, click on the iphone sign and at the bottom you shall see an option to manually mange your phone. You should select that and then you can manually delete all your music at a single click.