2010-03-19 21:29:42 -04:00
|
|
|
module Fog
|
2011-06-15 17:26:43 -04:00
|
|
|
module Storage
|
|
|
|
class Rackspace
|
2010-03-19 21:29:42 -04:00
|
|
|
class Real
|
2009-10-28 01:20:50 -04:00
|
|
|
|
|
|
|
# Delete an existing container
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * name<~String> - Name of container to delete
|
2013-03-27 10:50:30 -04:00
|
|
|
# @raise [Fog::Rackspace::Errors::NotFound] - HTTP 404
|
|
|
|
# @raise [Fog::Rackspace::Errors::BadRequest] - HTTP 400
|
|
|
|
# @raise [Fog::Rackspace::Errors::InternalServerError] - HTTP 500
|
|
|
|
# @raise [Fog::Rackspace::Errors::ServiceError]
|
2009-10-28 01:20:50 -04:00
|
|
|
def delete_container(name)
|
2011-06-15 17:26:43 -04:00
|
|
|
request(
|
2009-10-28 01:20:50 -04:00
|
|
|
:expects => 204,
|
|
|
|
:method => 'DELETE',
|
2011-09-16 23:46:22 -04:00
|
|
|
:path => Fog::Rackspace.escape(name)
|
2009-10-28 01:20:50 -04:00
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|