Skip to main content
Question

How to delete aliases to prevent people to amass 50 aliases

  • August 5, 2025
  • 1 reply
  • 70 views

Fewlaps
Forum|alt.badge.img+6

Hello RevenueCat team,

 

Since users can install and launch the app without logging in, aliases are automatically added to their account once they log in. That means if someone do that 50 times, 50 aliases will be created, and then, the purchases can’t be restored because they are receiving an error stating that that user has too many aliases.

Then, I’ve seen there’s a way to list someone’s aliases via the V2 API, but how to delete some aliases? It would be great if I could start deleting the oldest aliases when someone reaches 40, for example. Those aliases are anonymous users, so there’s no need to keep them there.

If it’s not possible to delete the aliases, is there any workaround?

Thanks!

This post has been closed for comments

1 reply

hussain
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • August 8, 2025

Hi,

Thanks for reaching out. I’m happy to help!

I totally understand how frustrating it can be to hit the 50-alias cap and then be unable to restore purchases. RevenueCat doesn’t currently offer a way to remove a single alias once it’s been created, you can only delete an entire subscriber (and all of their aliases) in one go. You can do this via the REST API Delete Customer endpoint:

DELETE https://api.revenuecat.com/v2/projects/{project_id}/customers/{customer_id}
Authorization: Bearer sk_…

Be aware that deleting the subscriber removes all associated transactions and user properties, and the customer will need to call restorePurchases to re-sync their purchases with our backend.

A large number of aliases in production often indicates either a bug that’s creating and aliasing new user IDs repeatedly, or potential account sharing. To guard against these issues, we impose a limit on how many aliases are allowed.

The only work around in this case which I recommend is to delete the user and then when this user logs in again, they can restore purchases and will no longer have any aliases.

Hope this helps, let me know if you have any other questions, I'm happy to help however I can.

Best,

Hussain