GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add methods to delete artifacts by robherley · Pull Request #1626 · actions/toolkit

Conversation

@robherley

@robherley robherley commented Jan 17, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Having official client methods to delete artifacts will make some use cases much simpler.
For instance, this could allow the ability to overwrite an artifact eventually in actions/upload-artifact.

e.g.

- uses: actions/upload-artifact@v4
  with:
    name: my-artifact
    path: path/to/artifact/
    overwrite: true # something like this

Where overwrite would delete an artifact first, allowing for the upload of another.

I'll update the documentation in a separate PR.

Closes: #380
Partially supports: actions/upload-artifact#471

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
robherley added 5 commits January 17, 2024 16:18
@robherley
add public and internal methods to delete artifacts
b62d4c9
@robherley
fix typo
7fd71a5
@robherley
list for correct backend ids in internal delete
2f5fb3f
@robherley
add integration test for delete
2ad687a
@robherley
delete example
abe0bd9
@robherley
robherley marked this pull request as ready for review January 17, 2024 23:32
@robherley
robherley requested review from a team as code owners January 17, 2024 23:32
konradpabjan
konradpabjan reviewed Jan 17, 2024
View reviewed changes
Comment thread packages/artifact/README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/artifact/src/internal/client.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@robherley
more delete examples
1852eb2
konradpabjan
konradpabjan approved these changes Jan 18, 2024
View reviewed changes
vmjoseph
vmjoseph approved these changes Jan 18, 2024
View reviewed changes
@robherley
robherley merged commit daf23ba into main Jan 18, 2024
campersau
campersau reviewed Jan 18, 2024
View reviewed changes
Comment thread packages/artifact/src/internal/client.ts

return deleteArtifactInternal(artifactName)
} catch (error) {
warning(

@campersau campersau Jan 18, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there is no await for deleteArtifactPublic / deleteArtifactInternal is this warning actually printed when something goes wrong asynchronously? To me it looks this only catches errors which are thrown synchronously.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@muzimuzhi muzimuzhi mentioned this pull request Jan 18, 2024
Tip: @actions/artifact added methods to delete artifacts GeekyEggo/delete-artifact#19
Closed
@ChristopherHX ChristopherHX mentioned this pull request Feb 17, 2024
Actions Artifacts v4 backend go-gitea/gitea#28965
Merged
Copilot AI mentioned this pull request Jul 14, 2025
Explicit logging of cache key and restore key matches #2101
Merged
Derrick-MUGISHA pushed a commit to Derrick-MUGISHA/toolkit that referenced this pull request Oct 12, 2026
@robherley
Merge pull request actions#1626 from actions/robherley/delete-artifacts
981e4c8
Add methods to delete artifacts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

3 more reviewers
@campersau campersau campersau left review comments
@vmjoseph vmjoseph vmjoseph approved these changes
@konradpabjan konradpabjan konradpabjan approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Delete Artifacts using @actions/artifact

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@robherley @campersau @vmjoseph @konradpabjan
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.