How to Clean Up a Music Library
Step-by-step ways to clean up an Apple Music or iTunes library: remove duplicate tracks, fix song info, trim downloads on iPhone and tidy playlists.
Contents
- Back up the library before any cleanup
- Find and remove duplicate tracks on a Mac
- Fix song info so albums group correctly
- Clean up your Apple Music library on iPhone
- Free iPhone storage without losing your music
- Prune playlists and build smart playlists
- Clean up an older iTunes music library
- Keep library organization tidy over time
- Music library cleanup questions
- What is the simplest way to clean up an Apple Music library?
- Does deleting a song on iPhone delete it from my Mac?
- Can you find duplicate songs on an iPhone?
- Will cleaning up my library delete songs I bought?
- Can I undo deleting songs from my music library?
To clean up a music library, back it up first, then remove duplicates and fix song details. On a Mac, the Music app or iTunes handles the heavy edits in bulk. An iPhone suits lighter jobs like deleting albums, removing downloads and trimming playlists.
- Back up your library folder before you delete or edit anything in bulk.
- Use Show Duplicate Items on a Mac, then check each pair before deleting.
- Fix the artist, album artist and album fields so tracks group into the right albums.
- On iPhone, Remove Download frees storage while Delete from Library removes the item itself.
- Smart playlists keep cleanup going by surfacing unplayed and recently added music.
Back up the library before any cleanup
A backup is the first step in any music library cleanup, since bulk deletions are hard to undo. On a Mac, the Music app stores its library file and songs in your home Music folder. Copy that whole folder to an external drive, or let Time Machine make a fresh backup.
Songs from an Apple Music subscription live in the cloud, so a local backup mainly protects your own files. Ripped CDs, purchased downloads and imported tracks are the files you cannot easily replace. Older iTunes libraries keep the same kind of library file inside an iTunes folder instead.
Sync Library is the setting that shares one library across your Apple devices through iCloud. With it turned on, a song deleted on one device disappears from the others too. Check its state in the Music settings on each device before you start removing anything.
Find and remove duplicate tracks on a Mac
The Music app on a Mac has a built-in tool that lists duplicate tracks side by side. Removing those extras is the first large job when you clean up a music library on a Mac. Choose File, then Library, then Show Duplicate Items to see songs sharing a name and artist. Holding the Option key switches the command to Show Exact Duplicate Items, a stricter match.
Duplicate tracks are not always mistakes, so compare the Time and Album columns before deleting. A live version, a remaster or a compilation copy can share a title with the studio original. Keep the copy with the better audio file or the correct album, then remove the other.
Deleting a song on a Mac opens a prompt about the file itself, not just the library entry. Choosing to move the file to the Trash frees disk space, while keeping it leaves the file behind. Leave the duplicate view when you finish to see the full library again.
- Back up the Music folder
- Open File, Library, Show Duplicate Items
- Sort by name and compare Time and Album
- Select the extra copies and press Delete
- Choose whether to move the files to the Trash
Fix song info so albums group correctly
Fixing song info, or metadata, keeps each album together as one entry in your library. Metadata means the tags inside each track, such as title, artist, album and genre. Select a track on a Mac and press Command-I to open the Get Info window.
Album artist is the field that keeps a compilation or a featured-artist album in one place. Set the same album artist on every track, and the app treats them as one album. You can select several tracks at once to edit a shared field in a single pass.
Album artwork belongs in the same Get Info window, under the Artwork tab. Drag an image onto that tab to replace missing or wrong covers on your own files. Songs added from the Apple Music catalog carry their own details, and editing them may be limited.
Clean up your Apple Music library on iPhone
The Music app on iPhone handles deletions and playlist edits, but it has no duplicate finder or tag editor. Touch and hold a song, album or playlist to open a menu of actions. Delete from Library removes the item from your library and from synced devices.
Remove Download clears the stored copy from the phone while the item stays in your library. Streaming it later depends on Sync Library and, for catalog songs, an active subscription. Choose this option when storage is the problem rather than clutter.
In many versions of iOS, tapping Edit on the Library screen lets you choose which categories appear. Hiding categories you never use, such as Genres or Composers, shortens the list you scroll. Sorting options inside Albums and Songs also help you spot stray entries faster.
| Action | What it removes | Where it applies |
|---|---|---|
| Delete from Library | The item from your library | All devices with Sync Library on |
| Remove Download | The stored copy only | This iPhone |
| Remove from Playlist | The track's spot in that playlist | That playlist only |
| Delete Playlist | The playlist, not its songs | All devices with Sync Library on |
Free iPhone storage without losing your music
Clearing downloads lets you tidy a music library on iPhone storage without losing songs. Open Settings, find the Music app, then tap Downloaded Music to see space used per artist. Swipe left on an artist or album to remove its downloads from the phone.
The iPhone Storage screen under General lists Music among your apps with the space it takes. Tapping Music there leads to the same downloaded items, where swiping left deletes them. Cloud songs stay in your library, ready to download again over a network connection.
Optimize Storage is a Music setting that removes songs you have not played recently when space runs low. Tracks synced by cable from a Mac follow the Mac library rather than iCloud. Removing a cable-synced track from the phone leaves the original file on the Mac untouched. Syncing from the Mac again puts the removed track back on the phone.
Prune playlists and build smart playlists
Pruning playlists helps clean up a music collection, since unused lists pile up over time. Delete playlists you no longer play, or merge near-identical ones into a single list. Deleting a playlist removes the list itself, while its songs stay in your library.
A smart playlist is a list the Music app builds and updates from rules you set. On a Mac, choose File, then New, then Smart Playlist to open the rule editor. Rules like Plays is 0, or Date Added within a chosen period, surface forgotten tracks.
Smart playlists made on a Mac appear on iPhone when Sync Library is turned on. A rule for songs never played gives you a review queue of deletion candidates. Playlist folders on a Mac can also group related lists, such as seasonal or dinner mixes.
Clean up an older iTunes music library
Cleaning up an iTunes music library works much like the Music app, with similar menus. iTunes remains on Windows and older Macs, while newer macOS versions replaced it with Music. In iTunes, Show Duplicate Items sits under File, then Library, as it does in Music.
Missing files are tracks whose audio was moved or deleted outside the app. Both apps mark them with an exclamation point beside the song name. Double-click one to locate the file, or delete the entry if the file is gone.
Consolidate Files copies every track into the app's own media folder, so nothing stays scattered. You can find it under File, then Library, then Organize Library in both apps. Check free disk space first, because consolidating creates copies of files stored elsewhere.
Keep library organization tidy over time
Library organization stays manageable when you tidy small batches after each import. Check tags on new albums right after you add them, before errors spread to playlists. Delete trial tracks and one-listen additions while you still remember why you saved them.
Keep Music Media Folder Organized is a Mac setting that files songs into artist and album folders. A second option copies new imports into the Music Media folder so files stay together. Both options sit in the Files tab of the Music app settings on a Mac.
Short, regular reviews make an Apple Music library simpler to clean up than one large session. Add songs to playlists deliberately, since adding to a playlist can also add them to your library. Turn off Add Playlist Songs in Music settings if you prefer playlists that leave the library alone.
Music library cleanup questions
What is the simplest way to clean up an Apple Music library?
The simplest way to clean up an Apple Music library is working on a Mac. There, the Music app shows duplicate items and edits tags for many songs at once. Start with a backup, remove duplicates, then fix album info and prune playlists.
Does deleting a song on iPhone delete it from my Mac?
Yes, deleting a song on iPhone removes it from your Mac library when Sync Library is on. With Sync Library off, the deletion stays on the iPhone only. Use Remove Download instead if you only want to free space on the phone.
Can you find duplicate songs on an iPhone?
No, the Music app on iPhone has no built-in duplicate finder. Sorting the Songs list by title can reveal repeated entries you can delete by hand. For a full check, use Show Duplicate Items on a Mac with Sync Library turned on.
Will cleaning up my library delete songs I bought?
No, deleting a purchased song from your library does not cancel the purchase itself. You can often download it again from your purchase history, depending on store availability. A backup of the file still protects you if a track leaves the store.
Can I undo deleting songs from my music library?
Partly, since a backup or the Mac Trash can bring deleted music files back. Files moved to the Trash on a Mac can be put back while the Trash remains unemptied. Catalog songs from Apple Music can be added to your library again from search.