I've a list of 8K+ CiviCRM contacts that have been deemed spam/unwanted. I am looking to clear them from CiviCRM, along with their related Drupal users.
I've found and tested this module: https://www.drupal.org/project/userdelete which will allow me to plug in a list of email addresses, arrived at from joining my list of contacts to the civicrm_uf_match table.
My question is, what is the path of least resistance to handle a clean removal of the CiviCRM contacts?
The API explorer seems to indicate that the contact delete method will only take a single contact id at a time, which would force me to write a module or a rest client to iterate through my list.
Would simply updating the CiviCRM DB directly with is_deleted = 1 do the trick?
I imagine this isn't a new situation...
Thanks in advance for your feedback.