Answers.Body: <p>This is actually a Drupal and not a CiviCRM question.  A good answer is posted <a href="https://drupal.stackexchange.com/questions/38942/how-to-delete-blocked-users-in-bulk">here</a>; an alternate approach is the <a href="https://www.drupal.org/project/userdelete" rel="nofollow noreferrer">Bulk User Delete module</a>, but for your use case I think that might not be as easy as some of the answers under the first link.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-14T21:25:02.763Z
Answers.LastActivityDate: 2015-10-14T21:25:02.763Z
Answers.LastEditDate: 2017-04-13T12:47:16.150Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>If you mean 'how do I bulk delete contacts', then you can do this via the Advanced Search (or Find Contacts). Find the contacts you want to delete, tick those records, then under Actions you will find Delete Permanently.</p>
  
  <p>If you also want to delete the 'user accounts' then that will depend on the CMS. For example in Drupal, we tend to recommend deleting the Civi contact first, and then finding Drupal users who do not have a uf_match record, and deleting those. We found that making a Drupal View using Bulk Views Operations to facilitate this.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-14T18:58:11.083Z
Answers.Text: peterdnz, Thanks for responding. Sorry for the confusion. I meant user account. That is users that can log in to civicrm with a user name and password. I did not mean contacts as not all contacts have user accounts
Answers.UserDisplayName: Edward
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-14T18:59:08.690Z
Answers.Text: We are currently using Drupal.
Answers.UserDisplayName: Edward
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-29T16:46:09.470Z
Answers.Text: Is there a way to use Views Bulk Operations to delete the CMS record and then move the related Civi Record to trash - simultaneously? I built a Drupal view that is giving me the Drupal login/access data and other website info to make sure the contact isn't a contributor, and then linked Civi data into the view. I can determine now they are spam. Can the VBO hit the kill button for both?
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-29T19:52:00.170Z
Answers.Text: Maybe a VBO to delete the user, and a Rules tacked on that says, if Drupal user deleted then trash civi contact - but i don't know if Rules can do that since presumably it doesn't have the information it needs before it is too late. May work if you were okay to set the User to Blocked, and then trigger a Rule to delete both User and Contact ie while you still have both entities in existence? But of course that kind of overrides what Blocked is for but hopefully thinking aloud might trigger some other thoughts from others. do feed back if you come up with something.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-29T21:19:04.283Z
Answers.Text: (above should have said, "then trigger a Rule based on USER SET TO BLOCKED to delete ...)
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-14T18:03:52.050Z
Answers.LastActivityDate: 2015-10-14T18:03:52.050Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>How can do a bulk delete of users in Civi?
  We have too many user accounts in civi and would like to delete may of them and only keep the ones that we need.
  Instead of looking up the accounts one at a time. I would like to select a group of records and delete them.</p>
  
  <p>Thanks in advance
  Edward</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-14T18:00:40.937Z
Comments.Text: Hi Edward. Just trying to help clear up the terminology. Civi doesn't have 'user' accounts. Those are in your CMS, and it might help if you specify which you use.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-14T18:57:36.670Z
Comments.Text: peterdnz, Thanks for responding. Sorry for the confusion. I meant user account. That is users that can log in to civicrm with a user name and password. I did not mean contacts as not all contacts have user accounts.
Comments.UserDisplayName: Edward
Tags: <permissions>
Title: How can do a bulk delete of users in Civi?
ThreadText: # How can do a bulk delete of users in Civi?
  
  (Asked by: username_0 on 2015-10-14)
  
  How can do a bulk delete of users in Civi?
  We have too many user accounts in civi and would like to delete may of them and only keep the ones that we need.
  Instead of looking up the accounts one at a time. I would like to select a group of records and delete them.
  
  Thanks in advance
  username_0
  
  **Tags:** permissions
  
  > **Comments:**
  > **username_1**: Hi username_0. Just trying to help clear up the terminology. Civi doesn't have 'user' accounts. Those are in your CMS, and it might help if you specify which you use.  
  > **username_0**: peterdnz, Thanks for responding. Sorry for the confusion. I meant user account. That is users that can log in to civicrm with a user name and password. I did not mean contacts as not all contacts have user accounts.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-10-14. Score: 3
  
  This is actually a Drupal and not a CiviCRM question. A good answer is posted [here](https://drupal.stackexchange.com/questions/38942/how-to-delete-blocked-users-in-bulk); an alternate approach is the [Bulk User Delete module](https://www.drupal.org/project/userdelete), but for your use case I think that might not be as easy as some of the answers under the first link.
  
  
  ---
  
  ### Answer by username_1 on 2015-10-14. Score: 2
  
  If you mean 'how do I bulk delete contacts', then you can do this via the Advanced Search (or Find Contacts). Find the contacts you want to delete, tick those records, then under Actions you will find Delete Permanently.
  
  If you also want to delete the 'user accounts' then that will depend on the CMS. For example in Drupal, we tend to recommend deleting the Civi contact first, and then finding Drupal users who do not have a uf\_match record, and deleting those. We found that making a Drupal View using Bulk Views Operations to facilitate this.
  
  > **Comments:**
  > **username_0**: peterdnz, Thanks for responding. Sorry for the confusion. I meant user account. That is users that can log in to civicrm with a user name and password. I did not mean contacts as not all contacts have user accounts  
  > **username_0**: We are currently using Drupal.  
  > **username_3**: Is there a way to use Views Bulk Operations to delete the CMS record and then move the related Civi Record to trash - simultaneously? I built a Drupal view that is giving me the Drupal login/access data and other website info to make sure the contact isn't a contributor, and then linked Civi data into the view. I can determine now they are spam. Can the VBO hit the kill button for both?  
  > **username_1**: Maybe a VBO to delete the user, and a Rules tacked on that says, if Drupal user deleted then trash civi contact - but i don't know if Rules can do that since presumably it doesn't have the information it needs before it is too late. May work if you were okay to set the User to Blocked, and then trigger a Rule to delete both User and Contact ie while you still have both entities in existence? But of course that kind of overrides what Blocked is for but hopefully thinking aloud might trigger some other thoughts from others. do feed back if you come up with something.  
  > **username_1**: (above should have said, "then trigger a Rule based on USER SET TO BLOCKED to delete ...)  
  
  ---
  
  