pydo.apps.cancel_deployment()
Generated on 20 Oct 2025
from pydo version
v0.18.0
Description
Immediately cancel an in-progress deployment.
Parameters
| Name | Type | Required | Description | Default Value |
|---|---|---|---|---|
app_id |
string | True | The app ID | |
deployment_id |
string | True | The deployment ID |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
cancel_resp = client.apps.cancel_deployment("12345", "24556")More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.