Jump to content

How to uninstall modules that do not exist?


bernhard
 Share

Recommended Posts

I'm having all my projects under GIT and that's great. Whenever I add something to the project the files are on the live system and I can use $rm->installModule("Foo") to install that module.

But when I want to REMOVE a module, that's a little different. I can delete all the files locally and push the changes to the server. The module will not be loaded any more because the files don't exist. But processwire will try to load the module and recent versions even show a warning. So I wonder if it's enough to remove the module from the modules table like this:

$database->exec("DELETE FROM modules WHERE class='Foo'");

It seems to work, but I'd be happy to know if I'm missing anything here? ? 

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...