I am writing custom Drupal 8 install profile to be used in our organization.

The core creates the "Footer" menu as default system menu listed in menu admin page.

I want to delete or disable this menu during installation execution.

I already found that I can make it manually delete able if I add system.menu.footer.yml with

locked: false

But how can I eliminate it in the first place, via install profile ?

2 Answers 2



Following https://drupal.stackexchange.com/a/186322/8938 I added the code below to my_profile_install() function inside my_profile.install file.


Reinstalled and yes, footer menu is not around anymore :)


Edit: the OP asked how to do this in an install profile. For that please see the other answer.

Using Drush:

drush config-delete 'system.menu.footer'

The Drupal console should work the same:

drupal config:delete 'system.menu.footer'

The same commands could be used to delete other system menus as well. E.g., drush config-delete 'system.menu.main'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.