Magento 2 – How to disable a specific area within a Magento 2 Module?

I have come through an interesting point while reading the Magento 2 official dev docs. You can enable or disable an area within a module. Below is official link of devdocs article, https://devdocs.magento.com/guides/v2.3/architecture/archi_perspectives/components/modules/mod_and_areas.html There it’s mentioned. Let’s assume if we have adminhtml and frontend area within a module in Magento 2, then how could we…