Legacy Knowledge Base
Published Jun. 30, 2025

I can't delete a master page because it's being used

Written By

Adam Kollar

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • I cannot delete a master page because it's being used, but we cannot find the usage.
  • I have the following error message:
    • Error: You cannot delete master pages used by a page, a page template, or a display page template.

Environment

  • DXP 7.3+

Resolution

  • To resolve the issue, you would have to locate the source of the usage in your database.
  • You can find the usage by following these steps:
    1. Search for the master page in the layout table:
      for example:
      SELECT * FROM lportal.layout where name like '%Master_Page_Name%';
    2. Based on the results locate the PLIDS that is connected to the master page in question.
    3. Search for the PLIDS in the layout table's masterLayoutPlid column
      for example:
      SELECT * FROM lportal.layout where masterLayoutPlid in (11312,11313);
    4. From the results you can find which page or page template, or display page template uses the master page in question.
Did this article resolve your issue ?

Legacy Knowledge Base