1
0
mirror of synced 2026-01-04 09:06:46 -05:00
Files
docs/content/actions/managing-workflow-runs/removing-workflow-artifacts.md
Prashant Patel 37a6725582 Update "can not"
Both cannot and can not are acceptable spellings, but the first is much more usual.
We would use can not when the "not" forms part of another construction such as "not only." 
For example: These green industries can not only create more jobs, but also promote sustainable development of the land.
2022-06-09 22:13:03 +05:30

2.9 KiB

title, intro, versions, shortTitle
title intro versions shortTitle
Removing workflow artifacts You can reclaim used {% data variables.product.prodname_actions %} storage by deleting artifacts before they expire on {% data variables.product.product_name %}.
fpt ghes ghae ghec
* * * *
Remove workflow artifacts

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

Deleting an artifact

{% warning %}

Warning: Once you delete an artifact, it cannot be restored.

{% endwarning %}

{% 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="The trash icon" %} next to the artifact you want to remove.

    Delete artifact drop-down menu

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 {% ifversion fpt or ghec or ghes %}"Usage limits, billing, and administration."{% elsif ghae %}"Managing {% data variables.product.prodname_actions %} settings for a repository," "Configuring the retention period for {% data variables.product.prodname_actions %} for artifacts and logs in your organization," or "Enforcing policies for {% data variables.product.prodname_actions %} in your enterprise."{% endif %}

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

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 "List artifacts for a repository."