Apple - Is it possible to remove or delete the "Music" folder?

Do you have any indication that the OS will mind if you just rm -rf Music?

As far as I know, iTunes is the only app that uses that directory (at least on my machine, there seems to be nothing else in it).

So if you don't ever launch iTunes again, that directory should never reappear. If you want to guard against accidentally opening iTunes, you can move its library to a different location before removing the directory.


It won't work. The system keeps re-creating a Music folder in the Home directory.

  1. If you run them, then yes, iTunes and many other applications use the ~/Music directory.

  2. Moving the iTunes Media folder won't get you out from under that. iTunes creates many other items in the ~/Music directory in addition to the Media folder, and those other items will not get moved from ~/Music when the Media folder does. And given the chance, (i.e., running it), iTunes will create those items, re-create them after you remove them, and re-create them again and again.

  3. As far as I can tell, and I've worked pretty hard on it, you're stuck with something called "Music" or "music" going to be in your Home directory. I say "something", because it can also be a file. It doesn't sound like this approach is a viable solution for you, but it may be for others with almost exactly the same requirements (but not exactly the same). It worked for me. Though not a solution, hopefully the preceding information is informative. I believe it to be incontrovertible.

  4. After deleting the offending folder, I created two empty, zero byte files and saved them in the Home directory. I named one "music" and the other ".music" with no file extension in either case. Their presence blocks the system from creating a folder in that location with the name "Music". I set the immutable flag (chflags uchg ~/music) on both, I manually hid the visible one, and I roundly revoked the "write" permission from each. One would think that would do the trick, but when the system cannot save its folder there because it cannot over-write the files, it tries to change the permissions back and restore its power to write. To overcome this I made root the owner of the two files. That about did it. No more Music folder.

Note to Editor: Please do not alter the syntax of "something called 'Music' or 'music' going to be in your Home directory" above. It may sound awkward, but it is extremely precisely worded. I'd rather not post at all if the phrase is not allowed to stand ver batim. Thanks.

Tags:

Macos

Folders