
You can remove the header of a page using the bellow PowerShell Command after creating a new page(header is also created when creating a new page).
$PageName = "PageName"
$LoginUrl = "https://contoso.sharepoint.com/sites/siteName"
Connect-PnPOnline -Url $LoginUrl -UseWebLogin
Set-PnPClientSidePage -Identity $PageName -LayoutType Home
Note: Replace the variable below with your own and you will have a page without the title header.
If you intend to remove from all the Site Pages header, please refer to the following PowerShell Command. However, I would recommend making some backup before you do it.
$LoginUrl = "https://contoso.sharepoint.com/sites/siteName"
Connect-PnPOnline -Url $LoginUrl -UseWebLogin
$pages = (Get-PnPListItem -List SitePages).FieldValues
foreach($page in $pages){
Set-PnPClientSidePage -Identity $page.FileLeafRef -LayoutType Home
}
To get SPO to generate a new home page, you can create a new page firstly and set the new page as homepage.
Create a new page -> Go to Site contents -> click ellipsis next to the new page -> Make homepage:
I hope this information has been useful, please let me know if you still need assistance.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.