Forum Discussion
How do I restore a Modern homepage that was deleted?
- Apr 30, 2020
Niki Felker I know your question was from 6 months ago, but I just had a similar problem, except that in my case a user had deleted the home page almost a year ago. I found that you can create a new blank modern page by appending "/_layouts/CreateSitePage.aspx" to the end of your site URL. e.g. https://yourtenant.sharepoint.com/sites/yoursite/_layouts/CreateSitePage.aspx
That will let you create a blank modern page.
If you want to create a page with the default modern home page layout, you can use the Pnp (Patterns and Practices) powershell module for Sharepoint with the following couple of lines:Connect-PnPOnline -Url "https://yourtenant.sharepoint.com/sites/yoursite"
Add-PnPClientSidePage -Name Home -LayoutType Home
(of course you'll need to have the PnP SharePoint module installed for that to work)
That will create a modern page named Home, with the Home layout, in the site pages library.
john johnThanks John. The strange part is, it's not in the first or second stage recycle bin - and it was deleted it yesterday.
- Niki FelkerJul 16, 2019Copper Contributor
Rob EllisI just created the site so my recycle bin is empty. I've added content to the homepage and 2 additional pages that I have created. I think I found the culprit - just need to figure out how it happened and if I can get the homepage restored! I was using a migration tool to copy a page from another site and it deleted the homepage from my destination site. Just sent an email to their support group hoping they can help. Is there any way to create a homepage? I want the page layout that the homepage provides (without that annoying thick empty space the title page gives you at the top).
- Rob EllisJul 16, 2019Bronze Contributordid the migration tool remove the homepage, or just overwrite it? if the latter, then you should be able to simply go back to a previous version of the page.
- Niki FelkerJul 16, 2019Copper Contributor
Rob EllisThe migration tool options were set to copy and replace, however the migration failed but it appears to have removed the Home.aspx page or replaced it with nothing :-/
- john johnJul 16, 2019Iron Contributor
Niki Felker wrote:Rob EllisI just created the site so my recycle bin is empty. I've added content to the homepage and 2 additional pages that I have created. I think I found the culprit - just need to figure out how it happened and if I can get the homepage restored! I was using a migration tool to copy a page from another site and it deleted the homepage from my destination site. Just sent an email to their support group hoping they can help. Is there any way to create a homepage? I want the page layout that the homepage provides (without that annoying thick empty space the title page gives you at the top).
Niki Felker if you are sure that the recycle bins are empty and no one has cleared the recycle bins,then this means that the page was not deleted. Maybe your home page is not actually deleted , it is just no more defined as the home page, go to your sitepages library and check if the page is listed there or not..
- Niki FelkerJul 16, 2019Copper Contributor