SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got 889 groups in People and Groups that I would like to delete. The normal way I can delete one group is:

  1. Navigate to the People and Groups management page, /_layouts/groups.aspx
  2. Click Edit to get to the Group Settings
  3. Scroll to the bottom and Click Delete I don't want to do that 889 times, but I don't want to deploy code to the server to do it.

What is the best way to accomplish this? A free third party client based tool would be acceptable or a web services api call if no other way exists.

share|improve this question

You can use my jQuery Library for SharePoint Web Services to call the Users and Groups Web Service operation RemoveGroup. It's not clear where you have the list of 899 groups (or if you do), but if it's in a spreadsheet, make it a SharePoint list and then loop through the items with GetListItems.

share|improve this answer
Thanks Mark. Could you share an example with more detail? I have jQuery and I think your library can be used without touching the server, but it would take me a while to work the jQuery syntax unless you help. – Tom Resing Mar 15 '10 at 16:57
Can you get the 899 groups into a list somewhere? – Marc D Anderson Mar 16 '10 at 16:16

You can also do this via PowerShell if that is deployed.

share|improve this answer
Thanks, Mike. I'm trying to avoid server access by RDP or stsadm commands, but this would be a light server approach if others don't work. – Tom Resing Mar 15 '10 at 16:56
Got it! That is the big reason I didn't fully elaborate and provide code. For me, I used to write console apps to do this sort of thing which seems like overkill. I think PowerShell does a good job of filling the gap if you have access to the server. In many environments that isn't possible though. – Mike Oryszak Mar 15 '10 at 22:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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