# Comment créer un script pour "Supprimer en masse" d'un groupe ?

**URL:** https://meta.discourse.org/t/how-to-create-a-script-to-bulk-remove-from-a-group/56614
**Category:** Support
**Created:** [Janvier 30, 2017, 8:45 UTC](https://meta.discourse.org/t/how-to-create-a-script-to-bulk-remove-from-a-group/56614 "2017-01-30T20:45:36Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [Janvier 30, 2017, 11:24 UTC](https://meta.discourse.org/t/how-to-create-a-script-to-bulk-remove-from-a-group/56614/2 "2017-01-30T23:24:20Z")

</div>

I think that what you want to do is have your developer use API calls to update Discourse when changes are made to the accounts rather than export a CSV daily. I’ve written one for the Wordpress MemberMouse plugin (I think that’s what it was).

Failing that, you might want a list of users to delete and a list of those to add, and then do something to check that both lists are actually in sync.

> [@Discourse REST API Documentation](https://meta.discourse.org/t/discourse-api-documentation/22706):
>
> Discourse API Please view the Discourse API Documentation site for detailed info: [https://docs.discourse.org](https://docs.discourse.org)information_source Authentication API requests must use HTTP header based authentication. Pass your Api-Key and Api-Username as HTTP headers. Authentication via query parameters or request body is not supported (this was removed in April 2020). Please see the example cURL request below. The only API endpoints that continue to support credentials in query parameters are requests to…

---

_[View the full topic](https://meta.discourse.org/t/how-to-create-a-script-to-bulk-remove-from-a-group/56614)._
