Skip to content

Instantly share code, notes, and snippets.

@heddn
Last active May 24, 2017 12:56
Show Gist options
  • Save heddn/20f917b49d27bb2208b5 to your computer and use it in GitHub Desktop.
Save heddn/20f917b49d27bb2208b5 to your computer and use it in GitHub Desktop.
drush ev '\Drupal::entityManager()->getStorage("migration")->load("foo")->delete();'
@itsdarrylnorris
Copy link

@heddn, Do you have an example on how to do this without Drush ?

@devarajjohnson23
Copy link

How about this

/**

  • Implements hook_uninstall().
    */
    function hook_uninstall() {
    // Delete remaining general module variables.
    Drupal::configFactory()->getEditable('variable_you_want_todelete')->delete();
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment