2010-03-19 18:29:42 -07:00
|
|
|
module Fog
|
2011-06-15 14:26:43 -07:00
|
|
|
module Storage
|
|
|
|
class Rackspace
|
2010-03-19 18:29:42 -07:00
|
|
|
class Real
|
2009-10-30 21:41:39 -07: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)
|
2011-06-15 14:26:43 -07:00
|
|
|
request(
|
2009-10-30 21:41:39 -07:00
|
|
|
:expects => 204,
|
|
|
|
:method => 'DELETE',
|
2011-09-16 23:46:22 -04:00
|
|
|
:path => "#{Fog::Rackspace.escape(container)}/#{Fog::Rackspace.escape(object)}"
|
2009-10-30 21:41:39 -07:00
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|