# File lib/cloudfiles/container.rb, line 425 def purge_from_cdn(email=nil) raise Exception::CDNNotAvailable unless cdn_available? headers = {} headers = {"X-Purge-Email" => email} if email begin SwiftClient.delete_container(self.connection.cdnurl, self.connection.authtoken, escaped_name, headers) true rescue ClientException => e raise CloudFiles::Exception::Connection, "Error Unable to Purge Container: #{@name}" unless (e.status.to_s > "200" && e.status.to_s < "299") end end