Apple Music and iTunes Match allow you to upload your own songs from a Mac or Windows PC to iCloud, making them available on all your devices, including your iPhone and iPad. If you want to delete such uploaded songs, you can view them all in one spot and then remove them.
How to remove uploaded music from iCloud