How Do I remove minimize, maximize, and close buttons in Ubuntu 18.04?

If you want to get rid of those window control buttons from all the windows run the following command in Terminal

gsettings set org.gnome.desktop.wm.preferences button-layout :

To undo this step, run

gsettings reset org.gnome.desktop.wm.preferences button-layout