Delete artifact or create transient artifact

I have some artifacts that are sent between jobs and don’t really need them afterwards.

Is there some way to (auto-)delete artifacts when the action is done?

Is there a way to (manually) delete artifacts some other way?

Ideally what I would like is a flag per artifact which makes it transient. Which would auto-delete delete them at the end. Something like

- name: Upload artifact
  uses: actions/upload-artifact@v1
    name: myartifact

    path: mypath

   temporary: true

1 Like

Currently, we have no any method to delete the uploaded artifacts, I tried some actions and GitHub REST APIs, but none of them is available.
About the Upload artifact action, you can go to the repository where the action is hosted to directly report your feature request to the appropriate engineering team by creating a new issue here.

Sure, I can easily create an issue on upload-action but the feature is bigger in scope then a single action as it needs to hook into the action ‘life-cycle’ and clean up things at the end.

For reference, I reported

You can now change artifact and log retention duration(min of 1 day) either through Actions Settings tab or via YAML. You can learn more about this feature here. Feedback is welcome!