How to delete all the music from the iPad I'm planning to sell?
You should do more than just remove the music.  

Settings -> General -> Reset -> Erase All content and settings.

Effectively this sets the iPad back to the out of box state, so that the new owner can fully configure.  You may be prompted for an iCloud password if you have installed the Find My Iphone app.