# IRPCWorkflowsAdmin.RemoveWorkflow

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Workflow administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWorkflowsAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWorkflowsAdmin/RemoveWorkflow/

Badges: `Administration API / specialized` `admin` `session`

Deletes a workflow with its states and transitions.

- **Service:** [Workflow administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWorkflowsAdmin/index.md) `MFiles.IRPCWorkflowsAdmin`
- **gRPC method:** `/MFiles.IRPCWorkflowsAdmin/RemoveWorkflow`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/remove-workflow`
- **Request:** [`RemoveWorkflowRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWorkflowsAdmin/RemoveWorkflow/index.md#request)
- **Response:** [`RemoveWorkflowResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWorkflowsAdmin/RemoveWorkflow/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires `manage_workflows` and `license_allows_modifications`.
- Classes that used the workflow as their workflow no longer refer to it.
- An unknown ID fails with "Not found.". Increments the metadata structure version.

<a id="request"></a>

## Request: RemoveWorkflowRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `id` | `int32` | The ID of the workflow to remove. |

<a id="response"></a>

## Response: RemoveWorkflowResponse

No fields.
