Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Feature: deleting resources by tag #36

Closed
assembler opened this issue Oct 12, 2012 · 4 comments
Closed

API Feature: deleting resources by tag #36

assembler opened this issue Oct 12, 2012 · 4 comments

Comments

@assembler
Copy link
Contributor

It would be awesome to have this ability.

I'm currently using rake task with code like this:

begin
  ids = Cloudinary::Api.resources_by_tag('development_env', max_results: 100)["resources"].map{|r| r["public_id"] }
  Cloudinary::Api.delete_resources(ids)
  sleep 1
end until ids.empty?

But it would be much more elegant solution to have something like this instead:

Cloudinary::Api.delete_resources_by_tag('development_env')
@assembler
Copy link
Contributor Author

I've tried this, but it didn't work:

call_api(:delete, "resources/images/tags/development_env", { }, options)

Its probably not supported by the api

@TalLevAmi
Copy link
Contributor

Thanks for the suggestion. We should have this ready for our next release cycle (mid next week).

@assembler
Copy link
Contributor Author

when will you be including this in new gem version?

@nadavs
Copy link
Contributor

nadavs commented Oct 28, 2012

Available in the latest released v1.0.41 of the GEM.

@nadavs nadavs closed this as completed Oct 28, 2012
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

No branches or pull requests

3 participants