'AWS Cognito delete-custom-attributes?
There is add-custom-attributes command in cognito-idp but no delete-custom-attributes?
How do I delete them?
Solution 1:[1]
Never mind.
This is not doable at the moment. Under the Custom Attributes it has mentioned that:
Cannot be removed or changed once added to the user pool.
Solution 2:[2]
I know this question is over 4 years old. But for me it appears at the top in a Google search. As far as I know there is currently no option in the Cognito UI to delete attributes. But you can use the AWS-CLI to delete the attributes. Here is the official description:
I know that this only works for specific users, but one could easy write a batch for this. Don't take me wrong ... it should be a feature of the CLI or the UI, but a batch is at least a workaround.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Sampath Dilhan |
Solution 2 | Rafa Viotti |