calling deleteLater() on the toolbar object schedules it for deletion and completely removes it also from the view -> toolbars menu. Note that you won't be able to further use the toolbar after that, for example re-adding it with iface.addToolBar(toolbar) will not work.
toolbar = QToolBar('Test Toolbar') # Add to main window & to 'View' menu iface.addToolBar(toolbar) # Remove from main window & 'View' menu toolbar.deleteLater()
On a related note, is there a way to hide the playbar via Python? It's not in the pane list and I can't see to find anything obvious in the API. thanks!
jbudsberg On a related note, is there a way to hide the playbar via Python? It's not in the pane list and I can't see to find anything obvious in the API. thanks!
Per SESI's comment this is not possible:
"I don't think we have any ability to hide the playbar at all, so there's nothing to add to HOM for this."
I filed an RFE for this #127072. So bump it up if you wanna see it in Houdini