class ActiveStorage::Service::CloudinaryService

def delete(key)

def delete(key)
  key = find_blob_or_use_key(key)
  instrument :delete, key: key do
    options = {
      resource_type: resource_type(nil, key),
      type: @options[:type]
    }.compact
    Cloudinary::Uploader.destroy public_id(key), **options
  end
end