Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I would like to delete a pagelayout from SharePoint, but I get the exception "This item cannot be deleted because it is still referenced by other pages". When I open the "content and sructure" view, select the layout page and press the button "show related ressources" I can see that the layout is used by a page. But this page does not exist.

Screenshot of content and scructure

I cleared the personal and sitecollection recycle bin to make sure no deleted version of the page exists. I also did a search on the contentdb and there I found a record with leafname = "CodesTest.aspx" in table "AllDocs".

But the question is - where is this page (CodeTest.aspx) and how can I get rid of it so I can delete the pagelayout?

Thanks for you help!

Kind regards

share|improve this question
    
have you try to delete the page by powershell? –  Salvatore Di Fazio Jan 21 '13 at 10:56
    
Have you checked recycle bin? It can contains your page. –  Alexander Jan 21 '13 at 11:03
    
@Alexander As i mentioned above - i emptied my personal and the sitecollection bin. So this should not be an issue –  tschuege Jan 22 '13 at 12:09
add comment

2 Answers 2

The same error happened to me yesterday!

I couldn't find any pages using my layout, so this is how I fixed it.

  1. I created a folder called "DeleteMe"
  2. I moved my layout into that folder.
  3. I edited the properties of the bad layout.
  4. I changed the type from 'Page Layout' to 'Design file'
  5. The layout stopped showing up as an option.

You might be able to check it out and delete it in explorer, but I didn't.

It doesn't take up too much space (~30 kb).

Good luck!

share|improve this answer
add comment

possible reason could be user should have checked out and not checked in. In this case that reference will still exits. you can check this by going into the page library settings and clicking 'Manage files which have no checked in version'., sharepoint will display list of files checked out by others. Once you checkin the file, you will be able to delete it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.