module Fog module Storage class Dtdream class Real # Delete an existing object # # ==== Parameters # * container<~String> - Name of container to delete # * object<~String> - Name of object to delete # def delete_object(object, options) bucket = options[:bucket] bucket ||= @aliyun_oss_bucket location = get_bucket_location(bucket) endpoint = "http://"+location+".aliyuncs.com" resource = bucket+'/'+object request( :expects => 204, :method => 'DELETE', :path => object, :bucket => bucket, :resource => resource, :endpoint => endpoint ) end def abort_multipart_upload(bucket, object, endpoint, uploadid) if (nil == endpoint) location = get_bucket_location(bucket) endpoint = "http://"+location+".aliyuncs.com" end path = object+"?uploadId="+uploadid resource = bucket+'/'+path ret = request( :expects => 204, :method => 'DELETE', :path => path, :bucket => bucket, :resource => resource, :endpoint => endpoint ) end end end end end