Skip to content

Delete multiple registry repository tags

DELETE
/api/v4/projects/{id}/registry/repositories/{repository_id}/tags

Deletes multiple registry repository tags based on the specified criteria.

id
required
One of:
string

The ID or URL-encoded path of the project

repository_id
required
integer

The ID of the repository

name_regex_delete
string
nullable

The tag name regexp to delete, specify .* to delete all

name_regex
string
nullable

The tag name regexp to delete, specify .* to delete all

name_regex_keep
string
nullable

The tag name regexp to retain

keep_n
integer
nullable

Keep n of latest tags with matching name

older_than
string
nullable

Delete older than: 1h, 1d, 1month

Success

Bad Request

Unauthorized

Not Found