i have a Smile_Gdpr module in vendor that have a sections.xml This it's content:

<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    <action name="smile_gdpr/consent/save">
       <section name="smile_gdpr_consents"/>
    <action name="catalog/account/login">
       <section name="smile_gdpr_consents"/>

    <action name="customer/account/logout">
       <section name="smile_gdpr_consents" />

In my module insert an override of this file, into


It's possible deleted some action (in my case name="customer/account/logout")?

1 Answer 1


Sadly there seems to be no possibility to get rid of one of the elements by creating a new sections.xml to delete a previous defined action... The XSD file for sections.xml is located in


And if you take a deeper look into that file, well, then you will see that there is not any other attribute or tag, that can be used, which you aren't using already inside your own sections.xml.

I would still see some possibilities to "remove" actions blocks , not from sections.xml, but at other points in the code. Here some examples:

  • You could either change the virtual type, defined for processing the sections.xml, and f.e. providing a different name for the sections file

  • Otherwise you could also create a plugin, so a specific action block won't be processed.

  • You could just hide specific sections using css

(I didn't try any of these yet, but I guess that at least some of them would work)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.