public Task DeleteAsync(string imageUrl)
        {
            var cloudinary = new CloudinaryDotNet.Cloudinary(new Account(_options.CloudName,
                                                                         _options.ApiKey, _options.ApiSecret));

            // TODO: This is not safe, we should not do this
            var publicId = Path.GetFileNameWithoutExtension(imageUrl);

            var deleteParams = new DeletionParams(publicId);

            return(cloudinary.DestroyAsync(deleteParams));
        }
 public static DeletionResult Destroy(this Cloudinary cloudinary, DeletionParams parameters)
 {
     return(cloudinary.DestroyAsync(parameters).ExecSync());
 }