Before you can delete a VPC, you must terminate any instances that are running in the VPC. If you delete a VPC using the VPC console, it also deletes resources that are associated with the VPC, such as subnets, security groups, network ACLs, DHCP options sets, route tables, and Internet gateways.
To terminate your instance, release your Elastic IP address, and delete your VPC
1.Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
2.In the navigation pane, choose Instances.
3.Select your instance, choose Actions, then Instance State, and then select Terminate.
4.In the dialog box, expand the Release attached Elastic IPs section, and select the check box next to the Elastic IP address. Choose Yes, Terminate.
5.Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.
6.In the navigation pane, choose Your VPCs.
7.Select the VPC, choose Actions, and then choose Delete VPC.
8.When prompted for confirmation, choose Yes, Delete.
- Step 1: Create the VPC
- Step 2: Create a Security Group
- Step 3: Launch an Instance into Your VPC
- Step 4: Assign an Elastic IP Address to Your Instance
- Step 5: Clean Up
Source By: <docs.aws.amazon.com>
To Become AWS Certified please Check out the Link;