Skip to content

Conversation

@cloudinary-pkoniu
Copy link
Contributor

Brief Summary of Changes

New feature: allow deleting resources by passing an array of asset ids

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:


exports.delete_resources_by_asset_ids = function delete_resources_by_asset_ids(asset_ids, callback, options = {}) {
return call_api("delete", "resources", deleteResourcesParams(options, {
"asset_ids[]": asset_ids

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why asset_ids[]? http client should encode this parameter

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The brackets are intentional. They match the pattern in delete_resources()

@esguerrat esguerrat merged commit e306a41 into master Sep 30, 2025
16 checks passed
@esguerrat esguerrat deleted the feature/delete-resources-by-asset-ids branch September 30, 2025 13:39
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.

4 participants