Gotcha, thanks for clarifying!
There isn’t a way to delete/replace metadata in that way using the api object in Actions - You’ll want to instead use the Management API in your Action for additional functionality:
https://community.auth0.com/t/using-the-management-api-in-actions/64947