Anyone know a way to delete a workflow from GitHub Actions?

skålfyfan picture skålfyfan · Sep 13, 2019 · Viewed 8.4k times · Source

I create a couple workflows in the .github/workflows folder of my repository to experiment with GitHub Actions. I have since learned quite a bit and deleted said "experimental" workflows from my repo. After deleting the "experimental" workflow yaml files and committing the deletions, when I go to the Actions tab of my repository I STILL see the workflows that I have since deleted.

I see no option to delete and start from scratch?! Is this not possible? Is it maybe possible through GitHub API? Hmm.

Answer

Edward Thomson picture Edward Thomson · Sep 13, 2019

As of July 7, 2020, you can now delete the results of individual workflow runs. To do this, navigate to your workflow, find the workflow run that you want to delete, and select the "..." menu. In this menu, select "Delete workflow run".

The workflow run and its logs will be removed.

Delete workflow run

Currently, you must do this for each workflow run individually.

However, this deletes workflow runs, it does not delete a workflow. Once the last workflow run has been deleted, you will be left with a workflow with no runs. (But you can re-use this name.)