Hey there @ganesh.kumaresan
You need to do an update where the fields in the metadata you want to remove have null
as value.
So, for example doing a PATCH with "user_metadata": {"attribute_name": null}
, will remove the field attribute_name
from the user metadata.
Additionally, in Actions you can use the api object to both set userMetadata and appMetadata:
api.user.setUserMetadata("attribute_name", null);
or
api.user.setAppMetadata("attribute_name", null);
Check this out for more information:
Please let me know if you have any further questions.
Thanks,
Timotei