class PostDB::User

Public Instance Methods

delete_account_data() click to toggle source
# File lib/postdb/user.rb, line 26
def delete_account_data
  mail_location = PostDB::Mail.mail_location

  path = mail_location.get_path(self.email, self.domain.name)

  return false unless File.exist?(path)

  begin
    FileUtils.rm_rf(path)
  rescue => e
    return false
  end

  true
end