Skip to content

Enable DELETE on the Docker v2 manifest endpoint#2377

Merged
gerrod3 merged 1 commit into
pulp:mainfrom
gerrod3:cursor/c71cc96a
Jun 30, 2026
Merged

Enable DELETE on the Docker v2 manifest endpoint#2377
gerrod3 merged 1 commit into
pulp:mainfrom
gerrod3:cursor/c71cc96a

Conversation

@gerrod3

@gerrod3 gerrod3 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add DELETE /v2/<name>/manifests/<digest> support to the registry API
  • Recursively remove the manifest, its tags, and related content from push repositories
  • Add functional tests for delete-by-digest, tag rejection, not-found, and auth failures

Test plan

  • Push an image to a push repository
  • Delete the manifest by digest and verify 202 Accepted
  • Confirm the image/tag is no longer pullable
  • Verify delete by tag name returns 400 INVALID_REQUEST
  • Verify delete without auth returns 401

Made with Cursor

@gerrod3

gerrod3 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

@gerrod3 gerrod3 marked this pull request as ready for review June 1, 2026 22:50
@gerrod3 gerrod3 marked this pull request as draft June 9, 2026 17:55
@gerrod3 gerrod3 force-pushed the cursor/c71cc96a branch 2 times, most recently from 47fe1d2 to 504a34c Compare June 25, 2026 18:46
Allow users to delete manifests by digest via the registry API, with
recursive removal of related tags and content from push repositories.

fixes: pulp#480
Co-authored-by: Cursor <cursoragent@cursor.com>
@gerrod3 gerrod3 marked this pull request as ready for review June 29, 2026 17:17
@gerrod3 gerrod3 merged commit 4f0ffd7 into pulp:main Jun 30, 2026
13 of 14 checks passed
@gerrod3 gerrod3 deleted the cursor/c71cc96a branch June 30, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

As a user I can delete a manifest by digest via docker v2 api

2 participants