We are using CiviCRM with wordpress and we're trying to do a data cleanse to remove any out of date and spam contacts. None of the records we're trying to delete have financial data attached. We deleted over 500 records in batches using the permanently delete function and with each deletion the message appeared saying these records have been permanently deleted. At the time of deletion the total number of records reflected that these records had been deleted but the next day these records all reappear. Can anyone tell me how to resolve this please?

  • do you have any sort of script/job that is importing contacts from somewhere else? Are they exactly the same records (ie do an export of their name/email next time before you delete and then confirm that the new ones that appear are exact match) – petednz - fuzion Apr 1 at 20:10

Are those real contacts? Can you check the created date against the contact? It shows up at the bottom when you view the contact or you can grab from civicrm_contact.created_date using mysql.

If the dates are changing than it means those contact are created via Bots. Could check all the forms which are accessible to anonymous user have recaptcha installed these includes user registration, membership signup or event registration etc? Include recaptcha on all your Civi profile forms. Visit the permission page to check if anonymous user is allowed to create contact.

  • 1
    I've checked a handful of the contacts I know I had already deleted and yes the contacts are being created with a new date. My know how of the system is not sufficient to work out exactly how they're doing it but I've added captcha boxes on any profile forms where it was missing. I already updated the permission page to stop anonymous users creating contracts. I will see tomorrow morning if I've blocked all the possible avenues. Thank you I really appreciate your help. – Mary M Apr 1 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.