Cloudinary\Api::delete_resources_by_tag PHP Method

delete_resources_by_tag() public method

public delete_resources_by_tag ( $tag, $options = [] )
    function delete_resources_by_tag($tag, $options = array())
    {
        $resource_type = \Cloudinary::option_get($options, "resource_type", "image");
        $uri = array("resources", $resource_type, "tags", $tag);
        return $this->call_api("delete", $uri, $this->only($options, array("keep_original", "next_cursor", "invalidate")), $options);
    }

Usage Example

Example #1
0
 function test09b_delete_resources_by_tag()
 {
     // should allow deleting resources
     Curl::mockApi($this);
     $this->api->delete_resources_by_tag("api_test_tag_for_delete");
     assertUrl($this, "/resources/image/tags/api_test_tag_for_delete");
     assertDelete($this);
 }
All Usage Examples Of Cloudinary\Api::delete_resources_by_tag