Empty folder deleted from PROD before it was unpublished | Community
Skip to main content
May 10, 2024
Solved

Empty folder deleted from PROD before it was unpublished

  • May 10, 2024
  • 3 replies
  • 733 views

Hi - During archiving, an empty folder was accidentally deleted from PROD before being unpublished in the public media manager site. Is there a way to recover it in PROD in order to unpublish first and then re-delete?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Harwinder-singh

@elizabethre2 Simply create a new folder with the same name, and the following : publish it --> unpublish it --> delete from Author

3 replies

Harwinder-singh
Community Advisor
Harwinder-singhCommunity AdvisorAccepted solution
Community Advisor
May 10, 2024

@elizabethre2 Simply create a new folder with the same name, and the following : publish it --> unpublish it --> delete from Author

tushaar_srivastava
Level 6
May 12, 2024

Hi @elizabethre2 

if it was not an empty folder and versioning were enabled then I would recomend you to retore the folder from previous version like: Solved: recovering a deleted folder on AEM dam on version ... - Adobe Experience League Community - 557184

 

But since it is empty:  I will go with @harwinder-singh !

sarav_prakash
Community Advisor
Community Advisor
May 12, 2024

If you know the exact paths in publisher, and just want to clear the orphaned nodes in publisher, you can use distribution agent to delete nodes at publisher. 

You can refer to this article 

https://medium.com/@bsaravanaprakash/orphaned-resources-in-aemcaas-publisher-programmatic-deletion-of-assets-on-the-publisher-5fbd5654fc45

 

and this adobe documentation

https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-22828

 

If it is less nodes, you can 

  1. On Author, navigate to Tools > Deployment > Distribution > Publish/Preview > Distribute.

  2. Input the following value.

    • Action: Delete
    • Path Browser: Target Path
  3. Click on Submit.

If more nodes, then you can use a curl command to delete at publisher 

curl -v -u user:user -d “action= DELETE” -d “path=/content/dam/orphaned-asset-only-in-publisher.jpg” https://author-p1234-e1234.adobeaemcloud.com/libs/sling/distribution/services/agents/publish