It depends on what the buttons are connected to. If you just delete the buttons (which you can!), you will get broken wires on the diagram. So, you first want to make sure you really don't need those buttons.
The easiest would be -- so as to not break the code -- to change those buttons into constants: right-click on them and select change to constant.
Again, it all depends on what the buttons are supposed to do.