Clear OS X Dock Applications
The following will remove all applications from OS X Dock.* This good for clearing out the dozen or so defaults applications in a hurry.
defaults write com.apple.dock persistent-apps -array && killall Dock
Line by Line
defaults write com.apple.dock persistent-apps -array # Replace dock apps with an empty array killall Dock # Kill the Dock (It will automatically restart)
*Note, this won't remove open applications, Mojave's recent applications, or the files and trashcan section from the dock.
Available Wiki Topics
The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.