2010-03-20 01:29:42 +00:00
|
|
|
module Fog
|
|
|
|
module Rackspace
|
2010-09-08 20:50:23 +00:00
|
|
|
class Storage
|
2010-03-20 01:29:42 +00:00
|
|
|
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)
|
2010-11-01 18:50:30 +00:00
|
|
|
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
|