fog--fog/lib/fog/storage/requests/rackspace/delete_object.rb

25 lines
553 B
Ruby
Raw Normal View History

module Fog
module Rackspace
class Storage
class Real
2009-10-31 04:41:39 +00:00
# Delete an existing container
#
# ==== Parameters
# * container<~String> - Name of container to delete
# * object<~String> - Name of object to delete
#
def delete_object(container, object)
response = request(
2009-10-31 04:41:39 +00:00
:expects => 204,
:method => 'DELETE',
:path => "#{CGI.escape(container)}/#{CGI.escape(object)}"
)
response
end
end
end
end
end