Hiding Sections in Umbraco 14+

In Umbraco 14+ does anyone know how to hide sections such as Packages and Translation when there isn’t a need for an admin to access them for a particular site?

It used to be done by

using Umbraco.Cms.Core.Sections

Then in a composer

builder.Sections().Remove();

builder.Sections().Remove();


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/115090-hiding-sections-in-umbraco-14plus

Did you managed to figure this out in the end?

By far the easiest way is to just remove the sections from the Administrators group via the interface of the backoffice:

But if you really want them removed completely, you can probably unregister them. Sections are - just like everything in the backoffice - extensions.