Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 2.08 KB

File metadata and controls

42 lines (29 loc) · 2.08 KB
title intro versions shortTitle redirect_from
Removing workflow artifacts
You can reclaim used {% data variables.product.prodname_actions %} storage by deleting artifacts before they expire on {% data variables.product.github %}.
fpt ghes ghec
*
*
*
Remove workflow artifacts
/actions/managing-workflow-runs/removing-workflow-artifacts

{% data reusables.actions.enterprise-github-hosted-runners %}

Deleting an artifact

Warning

Once you delete an artifact, it cannot be restored.

{% data reusables.repositories.permissions-statement-write %}

{% data reusables.actions.artifact-log-retention-statement %}

{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.actions-tab %} {% data reusables.repositories.navigate-to-workflow %} {% data reusables.repositories.view-run %}

  1. Under Artifacts, click {% octicon "trash" aria-label="Remove artifact ARTIFACT-NAME" %} next to the artifact you want to remove.

    Screenshot showing artifacts created during a workflow run. A trash can icon, used to remove an artifact, is outlined in dark orange.

Setting the retention period for an artifact

Retention periods for artifacts and logs can be configured at the repository, organization, and enterprise level. For more information, see AUTOTITLE.

You can also define a custom retention period for individual artifacts using the actions/upload-artifact action in a workflow. For more information, see AUTOTITLE.

Finding the expiration date of an artifact

You can use the API to confirm the date that an artifact is scheduled to be deleted. For more information, see the expires_at value returned by the REST API. For more information, see AUTOTITLE.

{% data reusables.actions.artifacts.artifacts-from-deleted-workflow-runs %}