can't delete pages in sharepoint 2010 foundation

Posted on 2013-01-24
Medium Priority
Last Modified: 2013-01-24
i keep getting the below error when i try to delete the default.aspx page.
Server error: The URL 'default.aspx' is invalid. It may refer to a nonexistent file or folder, or
refer to a valid file or folder that is not in the current Web.

And if i try to delete any page in sitepages, it just give me error code 6404 and never let me delete. any idea why this is happening?
Question by:StewSupport
  • 4
  • 3

Expert Comment

ID: 38815547
try with power shell what does it says

   1: $web = Get-SPWeb "http://intranet"

   2: $lib = $web.GetFolder("sitepages")

   3: $file = $lib.Files["mypage.aspx"];

   4: $file.Delete();

   5: $web.dispose();

or try deleting programatically
see what is the result.

another thing u should not delete the default.aspx page if you don't have a replacement home page assigned to the site.
Are you deleting from local server or from different machine.

Make sure you have enough permission to delete first.

you can try one more thing.
try creating a page first and try deleting the page see what happens....

Author Comment

ID: 38815606
same error cannot remove file error code: 6404. i can create file but can't delete or save after edit

Expert Comment

ID: 38815624
check your logs what does it says about delete operation.
do you have any event receivers that has been deployed or any features with event receivers check it....
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.


Author Comment

ID: 38815772
i can't even delete that site and now i can't upload any file to other sites it giving me the same error. where is this log that i should be looking at. please help. thanks

Author Comment

ID: 38815901
i found that the database is full. wondering if this is the issue. cleaning it up now
LVL 44

Assisted Solution

by:Rainer Jeschor
Rainer Jeschor earned 200 total points
ID: 38816142
it seems that your site collection has reached its quota.

Alternative issue could be that the database has reached its limit and is set to read-only.


Accepted Solution

kukdai earned 1800 total points
ID: 38816223
it may be then you are running out of space now. Clean up your database add some more spaces......

Author Closing Comment

ID: 38816265
not sure how to assign point to you guys but since you both try to help i tried to give point fairly. thanks

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Watch the video of Kernel Migrator for SharePoint, which demonstrate the process easily of migration from SharePoint to SharePoint, OneDrive for Business & Google Drive servers, Public Folder to SharePoint, File Server to SharePoint. The tool has va…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question