During configuration imports, you can stumble upon this issue: not being able to import config because there are existing entities of type shortcut.

This means you installed Drupal with the standard installation profile, which creates these shortcuts to use with the shortcut module.

To be able to fix this automatically, for example in a DevOps environment, you can use:

drush ev '\Drupal::entityTypeManager()->getStorage("shortcut_set")->load("default")->delete();'

This will delete the files.


Saved you some valuable time?

Buy me a drink 🍺 to keep me motivated to create free content like this!