Let's Nuke - AWS Account
Tags: webdev, tutorial, cloud, productivity
Published: 2022-07-31 07:46:00

## DAY 36 - Let’s Nuke AWS - Day Thirty-Six

[![Image tweet](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/49arpnjjyf762k9w8vuz.png)![Image cover](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bkl1ekxvja01wgwa33xc.png)](https://twitter.com/intent/tweet?text=Delete%20everything%20from%20your%20AWS%20Account%20%2C%20a%20blog%20by%20%40anuvindhs%0Ahttps%3A%2F%2Fictpro.co.nz%2Fhow-to-delete-everything-from-your-aws-account-100-days-of-cloud-day-36%2F%20%20%20%20)

[100 days of Cloud on GitHub](https://github.com/anuvindhs/100daysofcloud) - [Read On iCTPro.co.nz](https://ictpro.co.nz) - [Read on Dev.to](https://dev.to/anuvindhs)

------

## A step-by-step tutorial to Delete Everything from an AWS Account

### Prerequisites 

- Make sure you remove the account from the **organisations**.

- Get your access keys for CLI , check out this link to see [How to](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html#id_users_create_console)

- Now Goto repository, clink on releases, select your appropriate file, and right-click copy.

| Topic  | Link   |
| ------------ | ------------ |
|  Clone repo | [Link](https://github.com/gruntwork-io/cloud-nuke)|
| Releases | [Link](https://github.com/gruntwork-io/cloud-nuke/releases/tag/v0.16.2)  |

![Image 6](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xwce2akjyerf41s7crdp.gif)
 
I am using Linux so selecting **cloud-nuke_linux_amd64**,

### Setup the nuke plant  

- Now on your system create a folder called **nuke**, then cd into it 

![Image 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hw1o59oezp0tek0n5qgb.png)

 
```
wget https://github.com/gruntwork-io/cloud-nuke/releases/download/v0.16.2/cloud-nuke_linux_amd64 
```

- Check the folder once copied the file us `ls`
- lets rename the folder to aws-nuke `mv cloud-nuke_linux_amd64 aws-nuke`

![Image 3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a8prby7xfbyqi2poxth8.png)
 
- Change folder permissions
```
sudo chmod 777 aws-nuke
```

- lets copy this to /usr/bin
```
sudo cp aws-nuke /usr/bin
```
- verify the package 
```
aws-nuke
```

You will be able to similar result as shown in the screenshot

![Image 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/20v16mw5hqk6h3lrakbx.png)

Now lets enter the magic command

```
aws-nuke aws
```

![Image nuke](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2t9l4avl3wztdqtbdehj.gif)
 

We are not done yet, 

### let's nuke kaboooooom...

It will **preview** all the services gonna be destroyed 

you will be prompted to confirm.... 

```
nuke
```
 confirm by typing `nuke`

![Image 5](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/69hyo9thkzdc9vlx5dmt.png)
 
![Image kaboom](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v4hrij1smv51jmm32w8s.gif)
 
----------

**✅Connect with me on [Twitter](https://twitter.com/intent/follow?ref_src=anuvindhs&screen_name=anuvindhs)
 🤝🏽Connect with me on [Linkedin](https://www.linkedin.com/in/anuvindhs)
🧑🏼‍🤝‍🧑🏻 Read more post on [dev.to](https://dev.to/anuvindhs) or  [iCTPro.co.nz](https://ictpro.co.nz)
💻 Connect with me on [GitHub](https://github.com/anuvindhs)**

----------
{% user anuvindhs %}