Is there an opposite function to ui.add?

Is there an opposite function to ui.add?

Something like ui.remove?