I want to delete an existing image from Cloudinary. I have fetched public id of that image but not working delete code.
\Cloudinary::config(array(
"cloud_name" => $cloud_name,//"demo",
"api_key" => $api_key,//"286877943699458",
"api_secret" => $api_secret//"gNr8jY6sCYyihv8mrcoJHq4AaAw"
));
$image1 = $image1_arr->public_id; //public id is present in image1_arr array
\Cloudinary\Uploader::destroy($image1);