Deleting a package from a project's maven repository doesn't remove it from the maven-metadata.xml
Deleting a package from a project's maven repository doesn't remove it from the
Steps to reproduce
Publish a version of an artifact to a project's maven repository.
Verify that it appears in the output of these commands:
curl -H "Private-Token: $PAT" \ https://gitlab.com/api/v4/projects/$PROJ_ID/packages/maven/com/example/artifact_id/maven-metadata.xml curl -H "Private-Token: $PAT" \ https://gitlab.com/api/v4/groups/$GROUP_ID/-/packages/maven/com/exaple/artifact_id/maven-metadata.xml
$PATis a private access token that can access the maven repository.
$PROJ_IDis the numeric project ID.
$GROUP_IDis the group ID.
com/exampleis the slashified maven group ID (for
com.examplein this example)
artifact_idis the maven artifact ID
Verify that it also appears on the page
https://gitlab.com/$GROUP_ID/$PROJECT_SLUG/-/packagesin your browser.
Delete that version of the artifact.
It will now be removed from the UI, but will still appear in the output of the above curl commands.
I have a private project that exhibits this behavior on gitlab.com. I can link to it if that would help.
What is the current bug behavior?
Deleted artifacts remain in maven metadata.
What is the expected correct behavior?
Deleted artifacts should be removed from maven metadata.
Output of checks
This bug happens on GitLab.com