In the Music app on your Mac, click Songs in the sidebar. Select an item, then do one of the following: Find every instance of that item in your library: Choose File > Library > Show Duplicate Items. Find exact duplicates: Hold down the Option key, then choose File > Library > Show Exact Duplicate Items.
How do I find duplicate songs in Apple music on my iPhone?
Open iTunes / Apple Music. Go to File > Library > Show Duplicate Items. Select the tracks you wish to delete.