Reputation: 67
I want to delete cognito user using my lambda c# application. I noticed that we have the CognitoIdentityProvider SDK but i cant find examples in the internet about how to use it to delete a user using the email.
Upvotes: 1
Views: 972
Reputation: 13117
I'm not a C# guy myself, but you need to use the AdminDeleteUser
API-Call (documentation).
The documentation of this method in the .Net SDK will probably help you.
First you create an AdminDeleteUserRequest
Object which you then pass on to the aforementionend AdminDeleteUser
method from the SDK and if your permissions etc. are sufficient you should be good.
Upvotes: 1