# Method: projects.regions.workflowTemplates.delete

- [HTTP request](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.regions.workflowTemplates/delete#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.regions.workflowTemplates/delete#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.regions.workflowTemplates/delete#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.regions.workflowTemplates/delete#body.request_body)
- [Response body](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.regions.workflowTemplates/delete#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.regions.workflowTemplates/delete#body.aspect)
- [Try it!](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.regions.workflowTemplates/delete#try-it)

Deletes a workflow template. It does not cancel in-progress workflows.

### HTTP request

`DELETE https://dataproc.googleapis.com/v1/{name=projects/*/regions/*/workflowTemplates/*}`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The resource name of the workflow template, as described in <https://cloud.google.com/apis/design/resource_names>. - For `projects.regions.workflowTemplates.delete`, the resource name of the template has the following format: `projects/{projectId}/regions/{region}/workflowTemplates/{template_id}` - For `projects.locations.workflowTemplates.instantiate`, the resource name of the template has the following format: `projects/{projectId}/locations/{location}/workflowTemplates/{template_id}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `dataproc.workflowTemplates.delete` |

### Query parameters

| Parameters ||
|---|---|
| `version` | `integer` Optional. The version of workflow template to delete. If specified, will only delete the template if the current server version matches specified version. |

### Request body

The request body must be empty.

### Response body

If successful, the response body is an empty JSON object.

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `
  https://www.googleapis.com/auth/dataproc`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).