Delete all emails in Highrise app

How do I delete all emails in my highrise app? I don't want to delete the whole thing and start over, I have companies, tags and metadata. What's the easiest way?

This question is paraphrased from the Tibor Holoda question on GetSatisfaction

+1


source to share


1 answer


It seems that it is available through the API , and should be easy to ruby bindings :



#!/usr/bin/env ruby
ENV['SITE'] = "http://passkey:X@my.hirisehq.com"
require 'highrise'
Highrise::Person.each do |person|
  person.emails.each {|email|
    email.destroy
  }
end

      

+1


source







All Articles