In custom install profile How to delete the "Footer" menu that core provides by default? 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 ?
Solved.

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


  \Drupal::configFactory()->getEditable('system.menu.footer')->delete();


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