Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Bulk Metadata Deletion

Avatar

Community Advisor

Is there a way to delete metadata in bulk using a CSV/Excel file or any other method in AEM 6.5?

We can add/modify existing fields, but can't remove already existing metadata fields. Any suggestions will be really helpful.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @diksha_mishra, I not think it is possible to achieved your goal without any additional coding. Here are some options:

  1. Create groovy script - here you can find an example that in general will do what you need - you will of course have to adjust properties/metadata you would like to remove - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-asset-metadata-delete/...
  2. You will be able to get similar results using on deploy scripts - https://adobe-consulting-services.github.io/acs-aem-commons/features/on-deploy-scripts/index.html
  3. Interesting option is also a small extension for ACS Commons Manage Control Process - here is detailed description what should be done to use it for bulk deletion of properties/metadata - https://kiransg.com/2021/12/10/bulk-add-update-and-delete-properties-in-aem-without-using-groovy-con...

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @diksha_mishra, I not think it is possible to achieved your goal without any additional coding. Here are some options:

  1. Create groovy script - here you can find an example that in general will do what you need - you will of course have to adjust properties/metadata you would like to remove - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-asset-metadata-delete/...
  2. You will be able to get similar results using on deploy scripts - https://adobe-consulting-services.github.io/acs-aem-commons/features/on-deploy-scripts/index.html
  3. Interesting option is also a small extension for ACS Commons Manage Control Process - here is detailed description what should be done to use it for bulk deletion of properties/metadata - https://kiransg.com/2021/12/10/bulk-add-update-and-delete-properties-in-aem-without-using-groovy-con...