How do I factory reset my AWS Account or how do I delete all the services and their resources back to having a clean slate?

0

I have used AWS services for a while. But now I want to delete all services and resources to start fresh. Some 'Stacks' from CloudFormation and 'Applications' from Lambda are not getting deleted when I try to delete them. How do I delte these resources? Alternatively, is their any button in AWS that reset the account?

3 Answers
0

Hello.
What error occurs when I try to delete CloudFormation?

I think that using aws-nuke will help to delete most all resources.
https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/automate-deletion-of-aws-resources-by-using-aws-nuke.html

profile picture
EXPERT
answered 8 months ago
  • When I try to delete a stack from CloudFormation, a red coloured snackbar appears at the top saying, 'Failed to delete stack.'

  • Thanks for the reply. By the way, what kind of resources are you creating in that CloudFormation stack?

0

There is no button in AWS that resets the account, but you can delete all of your resources manually. Here are the steps on how to delete a stack from CloudFormation:

Go to the CloudFormation console. In the navigation pane, choose Stacks. Select the stack that you want to delete. In the Actions menu, choose Delete Stack. In the confirmation dialog box, choose Delete. Here are the steps on how to delete an application from Lambda:

Go to the Lambda console. In the navigation pane, choose Functions. Select the function that you want to delete. In the Actions menu, choose Delete Function. In the confirmation dialog box, choose Delete. If you are still having trouble deleting these resources, you can contact AWS Support for help.

profile picture
answered 8 months ago
  • I followed these steps exactly. But got an error. A red coloured error snackbar at the top saying, "Failed to delete stack". Hence the question here.

0

Have you tried steps in this trouble shooting document ?https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-delete-stack-fails

Have you checked your role, if you have permissions of deleting a stack? Also do you see any error in the events tab?

img

AWS
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions