Delete a nat gateway
You can delete a nat gateway that you no longer need.
This action dissociates the public IP from the nat gateway, but does not release this public IP from your account. The routes linked to this nat gateway are not removed from your route tables.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- compute.natGateway.delete
- Console
- API
- Terraform
You can delete a single nat gateway or delete several of them in a single action.
Delete a nat gateway
- From the left-hand side menu, click Network → VPC → NAT Gateways.

- Identify the nat gateway you want to delete, then from the list of actions, click Delete.

A new "NAT Gateway deletion" dialog box appears.
- To continue, a strong confirmation is required. Enter the name of the resource to delete in the corresponding field.
- Click Delete. The nat gateway is deleted.
A "The NAT Gateway has been deleted" confirmation message appears.
Delete several nat gateways
- From the left-hand side menu, click Network → VPC → NAT Gateways.

- Select the nat gateways you want to delete, then click Delete.

A new "NAT Gateways deletion" dialog box appears.
- To continue, a strong confirmation is required. Enter the term Delete in the corresponding field.
- Click Delete. The nat gateways are deleted.
A "The NAT Gateways have been deleted" confirmation message appears.
The DELETE /compute/spaces/{spaceId}/natGateways/{id} command deletes a specified nat gateway.
This action dissociates the public IP from the nat gateway, but does not release this public IP address from your account.
However, it does not remove the routes of the nat gateway from your route tables.
The Terraform documentation is available on the Numspot registry ↗.