lib/azure/armrest/model/storage_account.rb
# Delete the given +blob+ found in +container+. Pass a :date option
# if you wish to delete a snapshot.
#
Delete the given +blob+ found in +container+. Pass a :date option
if you wish to delete a snapshot.
Delete the given + blob + found in + container + . Pass a : date option if you wish to delete a snapshot .
def delete_blob(container, blob, key = access_key, options = {})
        raise ArgumentError, "No access key specified" unless key
        url = File.join(properties.primary_endpoints.blob, container, blob)
        url += "?snapshot=" + options[:date] if options[:date]
        headers = build_headers(url, key, :blob, :verb => 'DELETE')
        response = ArmrestService.send(
          :rest_delete,
          :url         => url,
          :headers     => headers,
          :proxy       => configuration.proxy,
          :ssl_version => configuration.ssl_version,
          :ssl_verify  => configuration.ssl_verify,
          :timeout     => configuration.timeout
        )
        headers = Azure::Armrest::ResponseHeaders.new(response.headers)
        headers.response_code = response.code
        headers
      end
def delete_blob ( container , blob , key = access_key , options = { } ) raise ArgumentError , "No access key specified" unless key url = File . join ( properties . primary_endpoints . blob , container , blob ) url += "?snapshot=" + options [ :date ] if options [ :date ] headers = build_headers ( url , key , :blob , :verb => 'DELETE' ) response = ArmrestService . send ( :rest_delete , :url => url , :headers => headers , :proxy => configuration . proxy , :ssl_version => configuration . ssl_version , :ssl_verify => configuration . ssl_verify , :timeout => configuration . timeout ) headers = Azure :: Armrest :: ResponseHeaders . new ( response . headers ) headers . response_code = response . code headers end
Delete the given +blob+ found in +container+.
Delete the given + blob + found in + container + .
container
<not_specific>
blob
<not_specific>
key
<not_specific>
access_key
<not_specific>
options
<not_specific>