Q:

Is it possible to disable module from theme.xml?

I have a frontend theme that is being loaded through an module, so that im not able to do any changes to it when it comes to enabling and disabling other modules as you usually do in different store views.
So what i have been wondering is whether or not it is possible to disable / skip some modules when that frontend theme is being used? 
I know it is possible on Magento 1.9 with command like this in theme.xml:
<config>
    <modules>
        <[Your_Module_Name]>
            <active>false</active>
        </[Your_Module_Name]>
    </modules>
</config>

However i dont know how to do it in Magento 2, and i cannot seem to find any information on it..
Stian

A:

After the comments from @belfort1 and @Raphael at Digital Pianism i understand that it is not possible to do this the way i think.
Using commands like 
<referenceBlock name="custom.module.block" remove="true"  />

is one way to do it, but this causing issues like that changes to other blocks thats being done by that module will still be done...The best possible solution ive found till now would be to use override command and remove complete content of module/extensions layout files for frontend on that theme.
<theme_dir>/<Namespace_Module>/layout/override/base/<layout>.xml

Guide for this could be found on Magento`s Devdocs: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/layout-override.html

