Can I dissable built-in Panels with another python script? I created an addon that ads my own panel in 3dView Properties, it consist of selected settings from View, Display and Shading panels. Now I want to disable those panels.
I could comment them out or add poll check in space_view3d.py file but I don't want to modify interface files permanently.
Is there a way to disable panels from another python script?
Import and unregister the UI panel

Simple test script, toggles the rego of the 3DView Properties View Panel, by looking at its is_registered property.

import bpy
# import the view panel
from bl_ui.space_view3d import VIEW3D_PT_view3d_properties as VP
# toggle rego
if VP.is_registered:
    bpy.utils.unregister_class(VP)
else:
    bpy.utils.register_class(VP)


Would suggest this is done in your register / unregister methods.

IMO this is a slippery slope, if you are going to distribute your addon,  as other addons may append prepend to those panels.