DeleteWorkflow
client.automations.delete(AutomationDeleteParams { force, workflowId } body, RequestOptionsoptions?): AutomationDeleteResponse
POST/gitpod.v1.WorkflowService/DeleteWorkflow
Deletes a workflow permanently.
Use this method to:
- Remove unused workflows
- Clean up test workflows
- Delete obsolete configurations
Examples
-
Delete workflow:
Permanently removes a workflow.
workflowId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
DeleteWorkflow
import Gitpod from '@gitpod/sdk';
const client = new Gitpod({
bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted
});
const automation = await client.automations.delete({
workflowId: 'b0e12f6c-4c67-429d-a4a6-d9838b5da047',
});
console.log(automation);{}Returns Examples
{}