dots.v2.projects.byProject_id().delete()

Generated on 27 Oct 2026 from DoTs version v1.21.0

Usage

client.v2.projects.byProject_id(project_id).delete(requestConfiguration?: RequestConfiguration<object>): Promise<void>

Description

To delete a project, send a DELETE request to /v2/projects/{project_id}. To be deleted, a project must not have any resources assigned to it. Any existing resources must first be reassigned or destroyed, or you will receive a 412 error.

A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

Parameters

project_id string required

Example: 4de7ac8b-495b-4884-9a69-1050c6793cd6

A unique identifier for a project.

Min: 1

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.projects
    .byProject_id("4de7ac8b-495b-4884-9a69-1050c6793cd6").delete();

More Information

See /v2/projects/{project_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.