Or just add the functionality to have a template that defines what themes and plugins to install. It would uninstall any theme/plugin not defined in that template.
Ie you could have a woocommerce + seo template that automatically installs a specific theme, woocommerce & SEO plugins.