Solving: This item cannot be deleted because it is still referenced by other pages
In SharePoint Designer, if your Master Page or Page Layout is already referenced to other pages, you will not be able to delete it and you will get this error This item cannot be deleted because it is still referenced by other pages.
So, the first step to fix this error is to get all pages that are already referenced to Master Page or Page Layout that you wish to delete.
How to get all references for Master Page and Page Layout?
To find all pages that already referenced to a specific Master Page or Page Layout, you have to do the following:
- Open your site collection, go to
Site Settings
.
- Below "
Site Administration
", click on "Content and structure
".
- In Content and structure, and at the left tree, click on "Master Page Gallary" to show all Master Pages and Pages Layout of your site.
- On the right side, all Master Pages, and Page Layout will be listed.
- Select you page for which you want to check its related resources and from the above toolbar, click on Show Related Resources.
- At the page bottom, you will get all related pages that have already been referenced to the selected Master Page or Page Layout.
- In the "Located In" column, you can find the location for each page, so open the located page and change its page layout to another one to can delete the reference between it and the page layout that you wish to delete.
- After completing
Step 7
on all referenced pages, Go back to SharePoint Designer, or Master Page Gallary in the browser, and try to delete the Page Layout which should be deleted successfully now.