pydo.projects.delete()
Generated on 23 Jan 2026
from pydo version
v0.25.0
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
| Name | Type | Required | Description | Default Value |
|---|---|---|---|---|
project_id |
string | True | A unique identifier for a project. |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.projects.delete(project_id="fda9fda")More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.