# File lib/cloudfiles/connection.rb, line 251 def delete_container(containername) begin SwiftClient.delete_container(storageurl, self.authtoken, containername) rescue ClientException => e raise CloudFiles::Exception::NonEmptyContainer, "Container #{containername} is not empty" if (e.status.to_s == "409") raise CloudFiles::Exception::NoSuchContainer, "Container #{containername} does not exist" unless (e.status.to_s == "204") end true end