<@498057949541826571> is it possible to delete all...
# support-questions-legacy
a
@rp_st is it possible to delete all users and their data programmatically.
r
hey @aV yea - we do have an API to delete one user. You can loop through all users and call that API
d
Hi there, similar question. We had a bot campaign against us over the weekend that created 100k users over a period of 24 hours. Do you recommend looping over those users and calling the API in this case as well? We've taken steps to prevent this kind of attack in the future.
r
yup. Looping over them and calling the delete API works well. However, you should probably add some sort of small delay between each loop iteration.
d
Sounds good! Does 400ms sound about right?
I could also implement a backoff if we get a
429
or other "too many requests" indicator back
r
Yes. 400 is way too much. Probably 50 MS is fine.
We don’t have rate limits for these APIs which are protected by the api key. Since they r only meant to be called by your backed
d
Okay works for me. Thank you!
r
By the way, what’s the MAU count you see on the supertokens.com dashboard?
d
It's over 100k users right now. I think I'm in an email chain with you about it, if you're Rishabh.
r
Yup. That’s me
Ok. So even after deleting it, the MAU count will still be 100k for this month.
Next month onwards, it should start reflecting the actual number
d
Okay great
By the way, do you know how the upgrade to 5.0 is going? There's something wrong with our
main
branch for local development so our developers are blocked right now until we can merge our upgrade changes.
r
Should be done within 16 hours from now.
d
Okay, thank you
2 Views