In this post I am going to explain how to remove containers or blocks from layout in Magento 2.

First you need to add one layout file in your extension or theme. In this, you need to use referenceBlock for the blocks, and referenceContainer for the containers.

To remove the Container:

To remove the Block:

In this, “name” is the name of the block or container which you want to remove.

After done with the changes, flush the cache and check for the result.

Thats it. Enjoy Magento 2!!