If you want to get rid of the Dashboard on your Mac running macOS Mojave or earlier, you can do so in System Preferences.