DeleteTask
environments.automations.tasks.delete(TaskDeleteParams**kwargs) -> object
POST/gitpod.v1.EnvironmentAutomationService/DeleteTask
Deletes an automation task.
Use this method to:
- Remove unused tasks
- Clean up task configurations
- Delete obsolete automations
Examples
-
Delete task:
Removes a task and its configuration.
id: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
DeleteTask
import os
from gitpod import Gitpod
client = Gitpod(
bearer_token=os.environ.get("GITPOD_API_KEY"), # This is the default and can be omitted
)
task = client.environments.automations.tasks.delete(
id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
)
print(task){}Returns Examples
{}