Delete music on iPhone but still in iTunes, On My Device, Music
I have had this problem for ages and search everywhere for answer in vain. I cannot believe that it still exist after so many versions of iOS and macOS. Some background: my music files are ripped from CD and I manage music manually from iTunes. Now, I deleted the music files from Music in iPhone. Basically, there is no trace of the music files in the Music app in iPhone. Now, when I connect my iPhone to my Mac and open iTunes. Under "On My Device" , then "Music", the music files are still showing up. However, when I click on them to play within iTunes, they cannot be played and there will be an icon with an exclamation mark next to the entry. This behaviour has been happening since day one when I was using iPhone 3 till now. I cannot believe it it still happening, very frustrating.
iMac (Retina 5K, 27-inch, Late 2014), macOS Sierra (10.12), iPhone iOS 10