- Newest
- Most votes
- Most comments
Hello.
Is there a method to delete multiple users at once in AWS Cognito?
Unfortunately, as of September 2024, there is no way to bulk delete users registered in a Cognito user pool.
Therefore, you need to create a script using SDK or AWS CLI.
Currently, we are planning to use the AWS SDK (Python boto3) to delete users by repeatedly calling the admin_delete_user API. I would like to know if this is the best approach or if there is a more efficient method available.
Yes, currently I think the only way to delete a user is to repeat the admin_delete_user API.
Are there any considerations for rate limits or performance issues when processing a large number of users? Any advice would be appreciated.
Yes, APIs such as user deletion have rate quotas.
The RPS for the admin_delete_user API is set to 25 and this value cannot be adjusted.
Therefore, if you want to delete a large number of users at once, I think it would be better to add a process that waits for a few seconds.
https://docs.aws.amazon.com/cognito/latest/developerguide/quotas.html#category_operations
Relevant content
asked 4 years ago
asked 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 4 years ago
