Automated deletion for images in the container registry #9280

Closed
opened 2025-11-02 08:34:01 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @loadi-dev on GitHub (Jul 28, 2022).

Feature Description

I'm heavily using the package registry introduced with Gitea 1.17 (using 1.17.0+rc2 at the moment). I'm especially generating docker images quite frequently. This starts to consume lots of space on my hard disk.

It would be nice, if Gitea would have the possibility to automatically delete packages (especially container images) after a configurable time. The configuration could come from the linked repository.

Gitlab has a similar feature allowing to configure a time to keep images (e.g. at least 2 weeks) and the amount of images to keep (e.g. keep the last 5 images). So only if both conditions were exceeded it would delete the images.

Alternatively it would already be helpful to allow bulk deletion using a checkbox in the packages list. Right now I need a lot of clicks to delete old packages (6 per container image starting on the packages overview list). And every time I delete one old image I'm back on the packages overview site.

Screenshots

No response

Originally created by @loadi-dev on GitHub (Jul 28, 2022). ### Feature Description I'm heavily using the package registry introduced with Gitea 1.17 (using 1.17.0+rc2 at the moment). I'm especially generating docker images quite frequently. This starts to consume lots of space on my hard disk. It would be nice, if Gitea would have the possibility to automatically delete packages (especially container images) after a configurable time. The configuration could come from the linked repository. Gitlab has a similar feature allowing to configure a time to keep images (e.g. at least 2 weeks) and the amount of images to keep (e.g. keep the last 5 images). So only if both conditions were exceeded it would delete the images. Alternatively it would already be helpful to allow bulk deletion using a checkbox in the packages list. Right now I need a lot of clicks to delete old packages (6 per container image starting on the packages overview list). And every time I delete one old image I'm back on the packages overview site. ### Screenshots _No response_
GiteaMirror added the topic/packagestype/proposaltype/feature labels 2025-11-02 08:34:01 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Aug 11, 2022):

related #20766

@KN4CK3R commented on GitHub (Aug 11, 2022): related #20766
Author
Owner

@KN4CK3R commented on GitHub (Nov 2, 2022):

Implemented this in #21658.

@KN4CK3R commented on GitHub (Nov 2, 2022): Implemented this in #21658.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9280