Warning: if you follow this guide, you won't be able to use certain features of macOS anymore (iOS apps, Apple Pay, ...)
- Reboot your Mac into recovery mode
- shutdown macOS
- after macOS has shut down, hold down the power button until it says something about "options"
- choose options and not your harddrive
- you will be asked to log in, do so
- start Terminal from the top menu
Type these two commands:
csrutil disable
csrutil authenticated-root disable
Reboot back to your desktop.
Open a Terminal and type:
mkdir -p -m777 ~/mount
sudo mount -o nobrowse -t apfs /dev/disk3s1 ~/mount
sudo rm -rf ~/mount/System/Applications/Music.app
sudo bless --mount "$HOME/mount/System/Library/CoreServices/" --setBoot --create-snapshot
sudo reboot
After the reboot Music.app
will be gone. You can safely delete ~/mount
now.
Oh, btw.: FileVault must be disabled before this is going to work.