title: How to disable and uninstall a Drupal module programmatically?
body: <p>I want to be able to disable and then uninstall a module programmatically on my local environment and then easily push that code to prod so everything gets updated.</p>
  
  <p>I'm guessing it's something with the <a href="https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_update_N/7.x" rel="nofollow noreferrer"><code>hook_update_N</code></a>. But not sure where to start. </p>