I'm developing a React Native app and using AWS Amplify with Amazon Cognito for authentication. I've added the authentication for the app using Amplify CLI (amplify add auth
). The problem is I need to add/remove the required attributes for the sign up, but those cannot be changed after the user pool is created.
My question is how can I delete the currently added user pool using the CLI, and making sure that the changes are reflected in aws-exports.js
?
I figured it out. As mentioned here, it's not in amplify-cli
docs, but you can remove a single category (in this case auth
) like this:
amplify remove <category>
So, in this case, it would be
amplify remove auth
And, then
amplify push