How to remove orphaned entities from Experience Edge using the EdgeOrphans admin page


Symptoms

Items deleted in SitecoreAI may remain published in Experience Edge as orphaned entities. 

When a child item is published to Experience Edge without its parent, and the parent is later deleted, subsequent publish operations do not unpublish the child from Experience Edge.

As a result, the child item becomes orphaned and stale content can be returned by GraphQL queries. 

Actions

To resolve the issue, perform the following steps:

  1. Log in to Sitecore as an Administrator.
  2. Navigate to /sitecore/admin/EdgeOrphans.aspx.
  3. Click Find Orphans.
  4. Navigate to /sitecore/admin/Jobs.aspx and wait until the FindEdgeOrphansJob is completed.
  5. Refresh the /sitecore/admin/EdgeOrphans.aspx page to see the results.
  6. Review the list of orphaned entities, including the ID, Parent ID, Cultures, Type, and Path values.
  7. Click Remove Orphans to trigger a publish job that deletes the orphaned entities from Experience Edge.
  8. Wait until the Orphan entities cleanup publish is completed. 
  9. Click Find Orphans again to confirm that no orphaned entities remain.

Note: Only one operation can run at a time. The removal uses the orphan list from the most recent scan. Always run Find Orphans before running Remove Orphans.