This is probably the simplest script to use to delete workflow runs.
for id in $(gh run list --json databaseId --jq .[].databaseId) do gh run delete ${id} done