Remove content from a repository

Examples

PUT /katello/api/repositories/841753487/remove_packages
{
  "ids": [
    "one-uuid"
  ],
  "repository": {}
}
202
{
  "id": null,
  "label": null,
  "pending": true,
  "action": "",
  "username": null,
  "started_at": null,
  "ended_at": null,
  "state": null,
  "result": null,
  "progress": 0,
  "input": null,
  "output": null,
  "humanized": {
    "action": null,
    "input": null,
    "output": null,
    "errors": null
  },
  "cli_example": null,
  "start_at": null,
  "available_actions": {
    "cancellable": null,
    "resumable": false
  }
}

Params

Param name Description
id
required

repository ID

Validations:

  • Must be a number.

ids
required

Array of content ids to remove

Validations:

  • Must be an array of any type

content_type
optional

The type of content to remove (srpm, docker_manifest, etc.). Check removable types here: /katello/api/repositories/repository_types

Validations:

  • String

sync_capsule
optional

Whether or not to sync an external capsule after upload. Default: true

Validations:

  • Must be one of: true, false, 1, 0.