Project

General

Profile

Actions

Bug #39346

closed

Fail to delete CV / CCV versions with error "The repository version cannot be deleted because it (or its publications) are currently being used to distribute content"

Added by Samir Jha about 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When attempting to delete single or multiple versions of a Content View or Composite Content View, the operation fails. The backend process returns a 400 Bad Request, indicating that the repository version or its publications are actively associated with a distribution point, blocking deletion.

The deletion fails, and the following error is raised in the production.log:

HTTP status code: 400
Response headers: {"Date"=>"Thu, XX Month 2026 XX:XX:XX GMT", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, DELETE, HEAD, OPTIONS", "X-Frame-Options"=>"DENY", "Content-Length"=>"174", "X-Content-Type-Options"=>"nosniff", "Referrer-Policy"=>"same-origin", "Cross-Origin-Opener-Policy"=>"same-origin", "Correlation-ID"=>"97a40a78-a5b4-4df0-b0c2-4a9949496bcd", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 satellite.example.com", "Connection"=>"close"}
Response body: ["The repository version cannot be deleted because it (or its publications) are currently being used to distribute content. Please update the necessary distributions first."]
Error message: the server returns an error
Steps to Reproduce
Navigate to the web UI.

Go to Content > Content Views or Composite Content Views.

Select a specific Content View and go to the Versions tab.

Attempt to delete a specific version (or multiple versions) of the CV.

Actions #1

Updated by The Foreman Bot about 2 months ago

  • Status changed from New to Ready For Testing
  • Assignee set to Samir Jha
  • Pull request https://github.com/Katello/katello/pull/11762 added
Actions #2

Updated by Quinn James about 2 months ago

  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot about 1 month ago

  • Fixed in Releases Katello 5.0.0 added
Actions #4

Updated by Samir Jha about 1 month ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by The Foreman Bot about 1 month ago

  • Fixed in Releases Katello 4.21.0 added
Actions

Also available in: Atom PDF