I have one Layout page on my site. I would like to delete it but I do not see a way how in the admin UI.

My web searches have turned up nothing. I guess you might say: just disable it; but I would actually like to delete it.

I assume this is possible because I have another Backdrop site that has no layout pages.

 

Accepted answer

That one is provided by (I believe) the standard install profile. You may not be able to remove it through the UI. If you install the minimal profile it won't pre-install this layout.

On a dev environment you might try removing these from the active config folder and then clearing caches:

  • layout.layout.home.json
  • layout.menu_item.home.json

Comments

Hi lloyddunn.

Is this not working for you?

Perhaps it is "owned" by a specific module which would need to be uninstalled first? (Guessing here).

Thanks for your quick responses and suggestions.

This is what I am seeing:

If I revert layout, then the Delete Layout still does not appear.

I am not using very many modules. Here is the whole list:

ckeditor5
coffee
emptyparagraphkiller
field_group
i18n
image_effects
insert_view
markdown
menu_attributes
multifield
smart_trim
special_menu_items
stage_file_proxy

That one is provided by (I believe) the standard install profile. You may not be able to remove it through the UI. If you install the minimal profile it won't pre-install this layout.

On a dev environment you might try removing these from the active config folder and then clearing caches:

  • layout.layout.home.json
  • layout.menu_item.home.json

Right. The Home layout can't be deleted, as it's module-provided. You can disable it if you wish. And you can select a different layout (or even a node) as the home page by going to admin/config/system/site-information

I see, well I was a bit confused because my other Backdrop site does not have this Layout page at all and never did. Could be that I chose the minimal installation at the start for that site (and forgot), and not the other, and that is why.

Thanks for all the explanations!