# File lib/cloudfiles/storage_object.rb, line 240 def purge_from_cdn(email=nil) raise Exception::CDNNotAvailable unless cdn_available? headers = {} headers = {"X-Purge-Email" => email} if email response = self.container.connection.cdn_request("DELETE", @storagepath, headers) raise CloudFiles::Exception::Connection, "Error Unable to Purge Object: #{@name}" unless (response.code.to_s =~ /^20.$/) true end