Skip to content

Enable DELETE on the Docker v2 blob endpoint#2380

Draft
gerrod3 wants to merge 2 commits into
pulp:mainfrom
gerrod3:issue-481-blob-delete
Draft

Enable DELETE on the Docker v2 blob endpoint#2380
gerrod3 wants to merge 2 commits into
pulp:mainfrom
gerrod3:issue-481-blob-delete

Conversation

@gerrod3
Copy link
Copy Markdown
Contributor

@gerrod3 gerrod3 commented Jun 1, 2026

Summary

  • Add DELETE /v2/<name>/blobs/<digest> to the registry API for push repositories
  • Pending blobs are removed immediately; committed blobs are removed via recursive_remove_content
  • Add functional tests for delete, not-found, invalid digest, and auth

Test plan

  • pytest pulp_container/tests/functional/api/test_delete_blob.py -v
  • Mount a blob to a push repo, DELETE it, confirm HEAD returns 404

Fixes #481

Made with Cursor

Implement DELETE /v2/<name>/blobs/<digest> for push repositories,
with functional tests. Fixes pulp#481.

Co-authored-by: Cursor <cursoragent@cursor.com>
Fixes lint failure blocking CI on PR pulp#2380.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gerrod3
Copy link
Copy Markdown
Contributor Author

gerrod3 commented Jun 1, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant