Expand my Community achievements bar.

SOLVED

Bulk edit metadata properties for an asset and bulk untag assets

Avatar

Level 2

Hello Community,

 

I have a requirement to bulk remove custom metadata properties (single-valued) for assets including removal of custom tags for bulk assets in AEM 6.5

I know that there is no OOTB means to bulk remove the properties.

 

Can anyone suggest what is the next best approach to deal this?

 

Thank you for your support.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@smrithi_govind  Please try the following custom methods to achieve this request:

  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 that 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. An 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...

Hope this helps. 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

@smrithi_govind  Please try the following custom methods to achieve this request:

  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 that 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. An 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...

Hope this helps. 

Avatar

Level 2

Hi smrithi_govind You can also use OOTB feature, you can export metadata then do necessary changes in CSV file and  import updated CSV refer follow steps 

 

Export metadata and download 

prakashvb_0-1704598297279.png

prakashvb_2-1704598395104.pngprakashvb_3-1704598445202.png

Modify file and upload it again using below path.

prakashvb_4-1704598688589.png

 

in second approach you can write java servlet using JCR API you can remove properties Let me know if it helps you or not