Skip to main content
AmolSe
Level 1
Nov 25, 2026 10:29 AM UTC
Question

How do you find and unpublish pages that were deleted in da.live but are still live on Edge Delivery?

Hi all,

On an AEM Edge Delivery Services site authored in da.live, deleting a document does not unpublish it. The preview (.aem.page) and live (.aem.live) copies stay online, stay in full-index.json and the sitemap, and keep showing up in search. Authors can no longer open them in da.live, so nobody can fix or republish them.

On a large site with many editors, migrations and bulk deletes, this builds up quietly.

What I know so far

  • The safe order is to unpublish, then unpreview, then delete the source. It's easy to forget when many people are editing.
  • Sidekick can unpublish a single page, and Bulk Operations can unpublish and unpreview a list of URLs.
  • Neither helps with finding the pages in the first place, once the source is gone.

What I did in my project

I built a small da.live app that compares two lists:

  1. every page in the live site's index
  2. every document in da.live (read through the DA Admin API)

Any path that is live but has no da.live document is reported as stale. I review the list, tick the pages that are really stale, and unpublish them (preview and live). It has safety checks and asks for confirmation before anything is unpublished.

I wrote up the setup and how the code works here, with the full source linked from the article:
https://medium.com/@seth.amol0992/build-a-stale-page-check-utility-for-aem-edge-delivery-in-da-live-b8a7669b195e

My question

  • Is there an official or recommended way to detect these pages, or to stop them from being left behind?
  • Does da.live or the Admin API have a way to unpublish automatically when a document is deleted?
  • How are you handling this on your own sites?

Thanks in advance. Any pointers, or feedback on my approach, would be appreciated.