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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Delete more than 50 contacts at a time
Pages: [1]

Author Topic: Delete more than 50 contacts at a time  (Read 823 times)

knackers

  • Guest
Delete more than 50 contacts at a time
January 28, 2010, 04:01:43 pm
Hey, sorry if this question seems obvious but I have a group of about 20k contacts and I need to delete them. Within civicrm I can only seem to delete 50 contacts at a time which seems bizzare. The reason for having so many was to try and send out a newsletter (which due to the 50 at a time limit also didn't work). I'm familiar with php/sql and don't mind doing it with a script.

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: Delete more than 50 contacts at a time
January 28, 2010, 04:54:25 pm

1. you can select all contacts in the group and delete them. alternatively, you can write a php script that loops thru the 20K records and deletes them one at a time (use civicrm_contact_delete)

2. you send a "mail" to a group (i.e. the group of 20K contacts), not to 50 contacts at a time. that is probably the fastest and most efficient

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

knackers

  • Guest
Re: Delete more than 50 contacts at a time
January 28, 2010, 05:54:58 pm
Thanks for the response, perhaps it's just my version but I cannot click the "All x contacts" radio button, it just highlights everything on the page and stays on the "Selected contacts" radio. Consequently the action only applies to selected contacts, since fifty is the maximum number allowed on one page the action is only applied to those fifty.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Delete more than 50 contacts at a time

This forum was archived on 2017-11-26.