After taking too many screenshots on my mac, My Desktop got littered with too many screenshots, So I had to change the location to somewhere else on my on mac. So incase you are also thinking about ways to do that, this is the easiest way to do it.
Steps To Change Default Location For Screenshots On MacOS
Open your terminal and type in:
defaults write com.apple.screencapture location ~/Pictures/Screenshots/
killall SystemUIServer
This is what it would look like.
As you can see the location: /Users/shehu.awwal/Pictures/Screenshots, That's where I want my screenshots to be saved, You can specify your own location.