The template is just standard HTML. If you select the form and look in the properties, there is an html property and an edit button :
That standard-page.html contains all the markup for the header and sidebar. There is also a “theme.css” file you can edit if required.
As to how to remove it all effectively and safely, I’ve never done it and can’t help there. Sorry.