I am trying to delete my custom aspx pages created with <Module> element. I
can access the pages like this:
currentWeb.GetFile(selectedPageItemUrl);
The selectedPageItemUrl variable has the url of file like :
http://server/siteCollection/pages/page1.aspx
After getting the file when I use Delete(), my application says that it removed
the file successfully but it's not removed. I am doing this in windows
application on button click which loads all my pages. When reload the
application, the pages are not shown after deletion but I can see the page on
frontend.
Is there any way that I can remove the page completely.