-**Expiration policy:** enable or disable the expiration policy.
-**Expiration interval:** how long tags are exempt from being deleted.
-**Expiration schedule:** how often the cron job checking the tags should run.
-**Expiration latest:** how many tags to _always_ keep for each image.
-**Docker tags with names matching this regex pattern will expire:** the regex used to determine what tags should be expired. To qualify all tags for expiration, use the default value of `.*`.
### Managing project expiration policy through the API
### Managing project expiration policy through the API
You can set, update, and disable the expiration policies using the GitLab API.
You can set, update, and disable the expiration policies using the GitLab API.
...
@@ -368,20 +498,6 @@ Examples:
...
@@ -368,20 +498,6 @@ Examples:
See the API documentation for further details: [Edit project](../../../api/projects.md#edit-project).
See the API documentation for further details: [Edit project](../../../api/projects.md#edit-project).
### Managing project expiration policy through the UI
To manage project expiration policy, navigate to **Settings > CI/CD > Container Registry tag expiration policy**.
-**Expiration policy:** enable or disable the expiration policy.
-**Expiration interval:** how long tags are exempt from being deleted.
-**Expiration schedule:** how often the cron job checking the tags should run.
-**Expiration latest:** how many tags to _always_ keep for each image.
-**Docker tags with names matching this regex pattern will expire:** the regex used to determine what tags should be expired. To qualify all tags for expiration, use the default value of `.*`.
## Limitations
## Limitations
Moving or renaming existing Container Registry repositories is not supported
Moving or renaming existing Container Registry repositories is not supported