Hiding Entire Panels and Other Elements from the UI I'd like to hide the vast majority of the user interface.  The users of my addon are biologists who are often quite intimidated by computers, so I'd like to limit the confusion on the screen to just the outliner, the panel of my custom addon, and the 3D view with no overlays, if possible.
How can I access the panels and other interface objects from python, in order to hide them from view?  It's probably fine to just consider the layout workspace.
Thanks for your help!
&quot;Whack&quot; em all.

Script will &quot;whack&quot; (unregister) any registered Panel, Menu or Header class that follows the naming convention.
import bpy

classes_to_whack = (
        getattr(bpy.types, p) 
        for p in dir(bpy.types)
        if any(
            sep in p 
            for sep in (&quot;_PT_&quot;, &quot;_HT_&quot;, &quot;_MT_&quot;)
            )
        )
        
for cls in classes_to_whack:
    bpy.utils.unregister_class(cls)

More sensible approach here Unregistering panels in python