feature: delete package from registry #14561

Open
opened 2025-11-02 11:16:17 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @volker-raschek on GitHub (Jun 7, 2025).

Feature Description

We had on discord a small discussion about a missing feature, which results in this feature request:

I want to add a Gitea Action workflow to remove a helm package, when the git tag has been removed. The helm plugin cm-push does not support a delete option: https://github.com/chartmuseum/helm-push/issues/147

Alternatively, I thought it would be possible with curl, but there is nothing documented.
https://docs.gitea.com/usage/packages/helm

The discord member 'TheFox' informed me, that the API does not provide a REST endpoint to delete a package from the registry. This leads than to this feature request.

Acceptance Criteria (AC):

  1. Extend the REST API to delete the packages from the gitea registry. This feature request refers not only to Helm Charts but to all generally supported packages.
  2. Adapt the documentation and describe how to delete via curl a package from the registry.

Screenshots

Image

Originally created by @volker-raschek on GitHub (Jun 7, 2025). ### Feature Description We had on discord a small discussion about a missing feature, which results in this feature request: I want to add a Gitea Action workflow to remove a helm package, when the git tag has been removed. The helm plugin cm-push does not support a delete option: https://github.com/chartmuseum/helm-push/issues/147 Alternatively, I thought it would be possible with curl, but there is nothing documented. https://docs.gitea.com/usage/packages/helm The discord member 'TheFox' informed me, that the API does not provide a REST endpoint to delete a package from the registry. This leads than to this feature request. Acceptance Criteria (AC): 1. Extend the REST API to delete the packages from the gitea registry. This feature request refers not only to Helm Charts but to all generally supported packages. 2. Adapt the documentation and describe how to delete via curl a package from the registry. ### Screenshots ![Image](https://github.com/user-attachments/assets/6f098ca4-bd53-4ff7-a663-82a49e2d0de0)
GiteaMirror added the topic/packagestype/proposal labels 2025-11-02 11:16:17 -06:00
Author
Owner

@TheFox0x7 commented on GitHub (Jun 7, 2025):

I'm basing my assumption of lack of any DELETE endpoint here
47d69b7749/routers/api/packages/api.go (L429-L433)
which I would expect if it was supported.

@TheFox0x7 commented on GitHub (Jun 7, 2025): I'm basing my assumption of lack of any DELETE endpoint here https://github.com/go-gitea/gitea/blob/47d69b7749689a7a7570ac20bdfd30d336daf7c1/routers/api/packages/api.go#L429-L433 which I would expect if it was supported.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14561