dots.v2.vpc_nat_gateways.byId().delete()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.vpc_nat_gateways.byId(id).delete(requestConfiguration?: RequestConfiguration<object>): Promise<void>

Description

To destroy a VPC NAT Gateway, send a DELETE request to the /v2/vpc_nat_gateways/{id} endpoint.

A successful response will include a 202 response code and no content.

Parameters

id string required

Example: 70e1b58d-cdec-4e95-b3ee-2d4d95feff51

The unique identifier of the VPC NAT gateway.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

await client.v2.vpc_nat_gateways
    .byId("70e1b58d-cdec-4e95-b3ee-2d4d95feff51").delete();

More Information

See /v2/vpc_nat_gateways/{id} in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.