CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Deleting fake email addresses after import
Pages: [1]

Author Topic: Deleting fake email addresses after import  (Read 904 times)

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Deleting fake email addresses after import
April 09, 2010, 11:20:04 am
I had to create some fake email addresses in order to import contacts and contributions in a way that matched them. Now I'd like to get rid of the fake addresses, which had the format "fake<lastname>@example.com". I'm in the civicrm_email table in phpMyAdmin and I've done a query similar to

SELECT *
FROM `civicrm_email`
WHERE email LIKE 'fake%com'

and am seeing the results. Can I simply delete these records entirely to remove the fake addresses from these contacts?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Deleting fake email addresses after import
April 09, 2010, 03:30:51 pm

yes

as always make a backup of the DB in case things go wrong

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: Deleting fake email addresses after import
April 12, 2010, 03:12:28 pm
I did back up, but that was unneeded. It worked like a charm. Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Deleting fake email addresses after import

This forum was archived on 2017-11-26.