How to remove page title (h1) from home page, cms_index_index.xml not working in Magento 2

Remove page title

Create a cms_index_index.xml file in “/app/design/frontend/(vendor)/(theme)/Magento_Theme/layout” and paste the following code –

<?xml version="1.0"?>
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.

<page xmlns:xsi="" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceBlock name="page.main.title" remove="true" />

For all other Pages create cms_page_view.xml and use the same code