Deleting maven packages #10957

Closed
opened 2025-11-02 09:23:12 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @lambdagg on GitHub (Jun 3, 2023).

Description

Just as the documentation suggests (https://docs.gitea.com/packages/usage/packages/maven), there is no way of programmatically deleting a Maven package. I do not think this is intended ; we can do it on GitHub and in development stages we could need to delete and recreate a package (because we cannot overwrite it - it will just add the files to the previous package) multiple times because changing the version on each commit when the project is not done yet is not ideal.
As every (almost?) any other package manager (https://docs.gitea.com/packages/usage/packages/npm#unpublish-a-package, https://docs.gitea.com/packages/usage/packages/generic...), could we get a way of deleting artifacts? At least an API endpoint?

Gitea Version

1.19.3

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Pre-built, docker

Database

SQLite

Originally created by @lambdagg on GitHub (Jun 3, 2023). ### Description Just as the documentation suggests (https://docs.gitea.com/packages/usage/packages/maven), there is no way of programmatically deleting a Maven package. I do not think this is intended ; we can do it on GitHub and in development stages we could need to delete and recreate a package (because we cannot overwrite it - it will just add the files to the previous package) multiple times because changing the version on each commit when the project is not done yet is not ideal. As every (almost?) any other package manager (https://docs.gitea.com/packages/usage/packages/npm#unpublish-a-package, https://docs.gitea.com/packages/usage/packages/generic...), could we get a way of deleting artifacts? At least an API endpoint? ### Gitea Version 1.19.3 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Pre-built, docker ### Database SQLite
GiteaMirror added the topic/packagestype/bug labels 2025-11-02 09:23:12 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Jun 5, 2023):

How can you delete the Maven packages from Github? I think there is no build-in delete command in Maven.

You can programmatically delete a package via the Gitea api: https://try.gitea.io/api/swagger#/package/deletePackage

@KN4CK3R commented on GitHub (Jun 5, 2023): How can you delete the Maven packages from Github? I think there is no build-in delete command in Maven. You can programmatically delete a package via the Gitea api: https://try.gitea.io/api/swagger#/package/deletePackage
Author
Owner

@lambdagg commented on GitHub (Jun 6, 2023):

There is indeed no built-in delete command in Maven. However, the GitHub APIs permits the deleting of packages.
I've figured it out with the API (i forgot the versioning when requesting...).
Thank you for troubleshooting!

@lambdagg commented on GitHub (Jun 6, 2023): There is indeed no built-in delete command in Maven. However, the GitHub APIs permits the deleting of packages. I've figured it out with the API (i forgot the versioning when requesting...). Thank you for troubleshooting!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10957