# File lib/openstack/swift/container.rb, line 196 def delete_object(objectname) path = "/#{@name.to_s}/#{objectname}" begin response = @swift.connection.req("DELETE", URI.encode(path)) true rescue OpenStack::Exception::ItemNotFound => not_found msg = "The object: \"#{objectname}\" does not exist in container \"#{@name}\". #{not_found.message}" raise OpenStack::Exception::ItemNotFound.new(msg, not_found.response_code, not_found.response_body) end end