Magento 2 remove category filter from list page filters?

Magento 2 remove category

Get the core file from –
vendor/magento/module-layered-navigation/view/frontend/templates/layer/view.phtml

Put it into your theme to override –

app/design/frontend/{Vendor}}/{themename}}/Magento_LayeredNavigation/templates/layer/view.phtml

Now you can use an if(false) loop to remove them with php code.