recycle-bin

POST /recycle-bin/{owner}/action/

Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details.

Request

  • Base URL
    https://api.cloudsmith.io
  • Auth
    • API key in header X-Api-Key
    • or HTTP basic

Request body

action'hard_delete' | 'restore' required

The action to perform on soft-deleted packages.

identifiersstring[] required

A list of soft-deleted package identifiers to action.

repositorystring

The repository name to filter packages to. If not provided, the action will be performed across all accessible repositories in the workspace.

Response

OK

actionstring

The action that was performed.

packages_actionedstring[]

List of package identifiers that were successfully actioned.

packages_failed_to_actionobject

Dictionary of package identifiers that failed with their error details.

Changes

No recorded changes to this operation across all 6 revisions of this API.