You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
Is there a command to delete all buttons in the GUI? I tried env->clear() but it leaves many of my buttons where they were when I redraw new things. Please help.
It sounds like you're doing something wrong. After you've called env->clear() all gui elements [not just the buttons] will be removed and no longer rendered. Remember that you have to draw the next frame for the changes to be displayed.