I want to delete the Site page which is set as home page. Now I have created a feature and on deactivating it the Site page is deleted. But I am facing the error as follows :
The item that you are trying to delete is the current welcome page and cannot be deleted.
As this is a home page so it doesn't allowing me to delete it. But I want to delete it.
Is there any way to delete forcefully (Programmatically)
Any help would e appreciated