Skip to content

Add confirmation prompt for destructive bulk Admin API methods#115

Merged
const-cloudinary merged 1 commit intomasterfrom
feat/destructive-bulk-confirmation
Apr 27, 2026
Merged

Add confirmation prompt for destructive bulk Admin API methods#115
const-cloudinary merged 1 commit intomasterfrom
feat/destructive-bulk-confirmation

Conversation

@const-cloudinary
Copy link
Copy Markdown
Member

Selector-style methods (delete_all_resources, delete_resources_by_prefix, delete_resources_by_tag) can wipe up to 1000 matching assets per call without the caller enumerating each target. Prompt before invoking them via handle_api_command, bypassable with the existing -F/--force flag.

Explicit-ID deletes, tag/context updates, restores, folder ops and reads are unaffected.

Brief Summary of Changes

What does this PR address?

  • GitHub issue (Add reference - #XX)
  • Refactoring
  • New feature
  • Bug fix
  • Adds more tests

Are tests included?

  • Yes
  • No

Reviewer, please note:

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I ran the full test suite before pushing the changes and all the tests pass.

Selector-style methods (delete_all_resources, delete_resources_by_prefix,
delete_resources_by_tag) can wipe up to 1000 matching assets per call without
the caller enumerating each target. Prompt before invoking them via
handle_api_command, bypassable with the existing -F/--force flag.

Explicit-ID deletes, tag/context updates, restores, folder ops and reads are
unaffected.
@const-cloudinary const-cloudinary merged commit 538803f into master Apr 27, 2026
10 checks passed
@const-cloudinary const-cloudinary deleted the feat/destructive-bulk-confirmation branch April 27, 2026 10:30
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.

1 participant