Me again. While working with MOSS 2007. Today I encountered a strange problem:
After I removed all pages referencing an existing page layout (in the masterpage gallery), I went on to delete that page layout. However, MOSS issued the following error message:
This item cannot be deleted because it is still referenced by other pages
I just deleted all the referencing pages.
Google quickly pointed out a Microsoft article that suggested there is a bug, and offering also a workaround. The workaround basically consisted in setting the page layout’s visibility to hidden, to re-publish and approve it. Short and sweet: It did not work (in my case).
So I looked around and found another solution, which eventually did the trick:
- Using SP Designer 2007, create a folder in the directory where the page layout resides.
- Move the page layout to that folder.
- Delete the folder you created in Step 1.
This should get you going, at least for me it did the trick!