Skip to content

Remove Admin menu items

Provided by sylius-starter/menu. Clean up the Sylius Admin panel by removing menu items you don’t need.

This command generates application/src/Menu/Admin/RemoveMenuItemsListener.php, a Symfony event listener that hides matching items from the admin main menu. Subsequent runs automatically merge new items into the existing list without prompting.

Pass one or more menu item names as arguments. Use parent/child syntax for sub-items.

Terminal window
castor sylius:menu:remove official_support sylius.ui.administration
castor sylius:menu:remove marketing/product_reviews

Removing multiple items from the Sylius Admin menu

OptionShortcutDescription
—replace-rReplace the full removed-items list instead of merging with existing items
—restore-bRestore previously removed menu items; deletes the listener when the list is empty

Replace the removed-items list:

Terminal window
castor sylius:menu:remove customers orders --replace

Restore previously removed items:

Terminal window
castor sylius:menu:remove --restore customers
castor sylius:menu:remove -b customers orders

Restoring a removed item from the Sylius Admin menu

Example workflow:

Terminal window
# Hide customers and orders from the admin menu
castor sylius:menu:remove customers orders
# Later, hide product reviews too (auto-merged)
castor sylius:menu:remove marketing/product_reviews
# Restore the customers menu item
castor sylius:menu:remove -b customers

Top-level items:

NameDescription
dashboardDashboard
catalogCatalog
salesSales
customersCustomers
marketingMarketing
configurationConfiguration
official_supportOfficial Support
sylius.ui.administrationAdministration

Sub-items (use parent/child syntax):

NameDescription
catalog/taxonsTaxons
catalog/productsProducts
catalog/inventoryInventory
catalog/attributesAttributes
catalog/optionsOptions
catalog/association_typesAssociation Types
sales/ordersOrders
sales/paymentsPayments
sales/shipmentsShipments
customers/customersCustomers
customers/groupsGroups
marketing/promotionsPromotions
marketing/catalog_promotionsCatalog Promotions
marketing/product_reviewsProduct Reviews
configuration/channelsChannels
configuration/countriesCountries
configuration/zonesZones
configuration/currenciesCurrencies
configuration/exchange_ratesExchange Rates
configuration/localesLocales
configuration/payment_methodsPayment Methods
configuration/shipping_methodsShipping Methods
configuration/shipping_categoriesShipping Categories
configuration/tax_categoriesTax Categories
configuration/tax_ratesTax Rates
configuration/admin_usersAdmin Users
official_support/sylius_plusSylius Plus
official_support/browse_pluginsBrowse Plugins
official_support/professional_servicesProfessional Services
official_support/find_a_partnerFind a Partner
official_support/sylius_certificationSylius Certification
sylius.ui.administration/rolesRoles