Jump to content

Delete Modules


Garima

Recommended Posts

Hi,

Are you trying to uninstall the module from the code OR what? Without coding, there is no other way to achieve the same.  

If you are trying to uninstall the module from the code, Use the following code in the module OR controller files.

$module_name = 'MODULE_NAME';
$module = Module::getInstanceByName($module_name);
if (Module::isInstalled($module)) {
     $module->uninstall();
}

I hope it will help.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...