## Deletes a Workflow `client.Workflows.Delete(ctx, workflowName, body) (*WorkflowDeleteResponse, error)` **delete** `/accounts/{account_id}/workflows/{workflow_name}` Deletes a Workflow. This only deletes the Workflow and does not delete or modify any Worker associated to this Workflow or bounded to it. ### Parameters - `workflowName string` - `body WorkflowDeleteParams` - `AccountID param.Field[string]` ### Returns - `type WorkflowDeleteResponse struct{…}` - `Status WorkflowDeleteResponseStatus` - `const WorkflowDeleteResponseStatusOk WorkflowDeleteResponseStatus = "ok"` - `Success bool` ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/option" "github.com/cloudflare/cloudflare-go/workflows" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) workflow, err := client.Workflows.Delete( context.TODO(), "x", workflows.WorkflowDeleteParams{ AccountID: cloudflare.F("account_id"), }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", workflow.Status) } ``` #### Response ```json { "errors": [ { "code": 0, "message": "message" } ], "messages": [ { "code": 0, "message": "message" } ], "result": { "status": "ok", "success": true }, "success": true, "result_info": { "count": 0, "per_page": 0, "total_count": 0, "cursor": "cursor", "page": 0 } } ```