githubgithub-apigithub-actions

Delete a workflow from GitHub Actions


I created 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 possible through GitHub API?


Solution

  • 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.

    edit: As of 2021 Feb it seems that after all workflow runs are deleted the workflow it self disappears. One comment below also seems to confirm this.