Reset Dock on macOS

Open a your favorite terminal emulator, such as Terminal or iTerm2.

The following command will reset the Dock to default settings and then restart it.

defaults delete com.apple.dock; killall Dock