Skip to content

Delete Build Artifact

Actions
Delete a build artifact that was previously uploaded in the workflow by the upload-artifact action
v2.0.1
Latest
Star (8)

Delete Artifacts

This GitHub Action to delete artifacts from your build. This can be useful when you want to clean up artifacts that are no longer needed.

See also upload-artifact.

Compatibility

Important

delete-artifact@v2 is not currently supported on GHES yet. If you are on GHES, you must use v1.

actions/upload-artifact joutvhu/delete-artifact
v1, v2, v3 v1
v4 v2

Usage

See action.yml

Delete a Single Artifact

steps:
- uses: joutvhu/delete-artifact@v2
  with:
    name: my-artifact

Delete Multiple Artifacts

Deleting multiple artifacts within a single action can be achieved by specifying each artifact name on a new line, this can improve performance when deleting more than one artifact.

steps:
- uses: joutvhu/delete-artifact@v2
  with:
    name: |
      artifact-1
      artifact-2

Delete All Artifacts

If you don't specify an artifact name this Action will be deleted all found artifacts

steps:
- uses: joutvhu/delete-artifact@v2

Delete Build Artifact is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Delete a build artifact that was previously uploaded in the workflow by the upload-artifact action
v2.0.1
Latest

Delete Build Artifact is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.