Change the default layout by script

Hello everyone. I am currently trying to develop a plugin to simplify the default interface, but so far I haven’t found anything useful. There are plenty of functions to expand the interface, but I couldn’t find anything about “shrinking” it. For example, I’d like to close the default toolbar and modes tab, how can I do that?

I have made this post on the UE forum, but nobody seemed to know the answer, and you’re my last hope :slight_smile: