See - doc https://github.com/actions/toolkit/tree/main/packages/artifact#delete-an-artifact - PR https://github.com/actions/toolkit/pull/1626 It seems to me then implementation in current repo could be simplified, once `@actions/artifact` ships a new release.