

# Delete a private workflow
<a name="delete-private-workflow"></a>

When you no longer need a workflow, you can delete it using the HealthOmics console, AWS CLI commands, or one of the AWS SDKs. You can delete a workflow that meets the following criteria:
+ Its status is ACTIVE or FAILED.
+ It has no active shares. 
+ You've deleted all the workflow versions.

Deleting a workflow doesn't affect any ongoing runs that are using the workflow.

**Topics**
+ [Deleting a workflow using the console](#console-delete-workflows)
+ [Deleting a workflow using the CLI](#api-delete-workflows)
+ [Deleting a workflow using an SDK](#sdk-delete-workflows)

## Deleting a workflow using the console
<a name="console-delete-workflows"></a>

**To delete a workflow**

1. Open the [HealthOmics console](https://console.aws.amazon.com/omics/).

1.  If required, open the left navigation pane (≡). Choose **Private workflows**.

1. On the **Private workflows** page, choose the workflow to delete.

1. On the **Workflow** page, choose **Delete selected** from the **Actions** list.

1. In the **Delete workflow** modal, enter "confirm" to confirm the deletion.

1. Choose **Delete**.

## Deleting a workflow using the CLI
<a name="api-delete-workflows"></a>

The following example shows how you can use the AWS CLI command to delete a workflow. To run the example, replace the `workflow id` with the ID of the workflow you want to delete. 

```
aws omics delete-workflow 
  --id workflow id
```

HealthOmics doesn't send a response to the `delete-workflow` request. 

## Deleting a workflow using an SDK
<a name="sdk-delete-workflows"></a>

You can delete a workflow using one of the SDKs.

The following example shows how to delete a workflow using the Python SDK.

```
import boto3

omics = boto3.client('omics')

response = omics.delete_workflow(
   id='1234567'
)
```