GitHub Actionsの実行履歴をまとめて削除する / How to delete workflow run histories at once - Qiita

TL;DR owner="Organization名 または User名" repo="リポジトリ名" file_name="ファイル名" gh api "repos/{repo}/actions/workflows/${file_name}/run...