Forum Discussion
Niki Felker
Jul 16, 2019Copper Contributor
How do I restore a Modern homepage that was deleted?
Somehow I managed to delete the homepage to my modern communication site. Problem is, I can't find it in the Recycle bin! Any ideas/suggestions on how I can recover that deleted homepage or how I ca...
- 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.
Niki Felker
Jul 16, 2019Copper Contributor
john john
Jul 16, 2019Steel Contributor
Niki Felker wrote:john johnIt's not there.....the only pages in the library are the other 2 new pages I created.
Niki Felker from the list activity it mentioned that you deleted the home.aspx 24 minutes ago, so this should have moved the page to the first stage recycle bin.. are you sure that you are the site admin for the current site? as only site admins can view the second stage recycle bin.. also make sure that no one have empty the second stage recycle bin by mistake... if those do not help, then the only option is to check with the migration tool vendor , maybe their tool perform some actions behind the scenes ..