lib/fog/rackspace/requests/storage/delete_object.rb in fog-1.10.0 vs lib/fog/rackspace/requests/storage/delete_object.rb in fog-1.10.1
- old
+ new
@@ -6,10 +6,13 @@
# Delete an existing object
#
# ==== Parameters
# * container<~String> - Name of container to delete
# * object<~String> - Name of object to delete
- #
+ # @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]
def delete_object(container, object)
request(
:expects => 204,
:method => 'DELETE',
:path => "#{Fog::Rackspace.escape(container)}/#{Fog::Rackspace.escape(object)}"