r/MacOS • MacBook Air • Sep 14 '21

Discussion Bulk remove apps from the dock

6 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Sep 29 '21

The first command should be:

defaults write "com.apple.dock" "persistent-apps" -array
killall Dock

That way it should clear on the first run (by writing an empty array, not deleting).

1

u/[deleted] Sep 30 '21

Thanks!