I want to delete a NAT gateway in Amazon Virtual Private Cloud (Amazon VPC).
Resolution
Note: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see Troubleshooting errors for the AWS CLI. Also, make sure that you're using the most recent AWS CLI version.
Update your configuration so that you don't disrupt your applications, Elastic Load Balancers, or databases
Use the Amazon VPC console to release the Elastic IP address that you associated with your NAT gateway. When you delete a NAT gateway in Amazon VPC, you disassociate its Elastic IP address. However, Amazon VPC doesn't automatically release the address from your AWS account.
Update your application route tables to point to the new destination. It's a best practice to implement your new deployment before you delete a NAT gateway. When you delete a NAT gateway, the NAT gateway routes remain in blackhole status until you update or delete the routes.
Delete the NAT gateway
Use the Amazon VPC console or the AWS CLI to delete a NAT gateway.
Note: Your NAT gateway entry might remain visible in the Amazon VPC console for 1 hour after you delete your NAT gateway.
Related information
Why can't I delete my requester-managed VPC endpoint?