Sometimes you might just dislike how you’ve customised your Mac’s Dock. When you look under System Preferences > Dock, there is no way to reset the macOS Dock to its default settings.
Fret not as you can use a Terminal command to quickly get back the default Dock. This will remove any apps you’ve added, bring back all the Apple’s default apps, reset the size of the Dock, its location and magnification settings.
Open Terminal app, copy and paste the following:
defaults delete com.apple.dock; killall Dock
Hit the Enter key and the Dock will quit and relaunch with default settings.