Hi @npatel,
Thanks for reaching out to the Auth0 Community!
Unfortunately, the api.user.setUserMetadata
will save the users’s user_metadata forever.
As an alternative, you could consider resetting the user’s user_metadata by using the Management API update a user endpoint to programmatically reset the user_metadata based on your needs (i.e every few days). With this approach, you’ll have the flexibility to keep and discard any user_metadata values.
Please let me know if there’s anything else I can do to help.
Thank you.