# Remove users script either via API or PG available?

**URL:** https://meta.discourse.org/t/remove-users-script-either-via-api-or-pg-available/41194
**Category:** Support
**Created:** [March 17, 2016, 1:59pm UTC](https://meta.discourse.org/t/remove-users-script-either-via-api-or-pg-available/41194 "2016-03-17T13:59:19Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [March 17, 2016, 2:07pm UTC](https://meta.discourse.org/t/remove-users-script-either-via-api-or-pg-available/41194/4 "2016-03-17T14:07:43Z")

</div>

The entire Discourse platform uses the API, so if you watch what the web application does, you can see what API calls to make. Which is where the Dev Tools/Console comes in play on your browser.

> [@Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576):
>
> Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api. The API is documented at [docs.discourse.org](https://docs.discourse.org). You can also use the [discourse\_api](https://github.com/discourse/discourse_api) Ruby gem as a client library. However, not every endpoint is documented. To determine how to do something with the JSON API here are some steps you can follow. Example: recategorize a topic. Go to a topic and start editing a category: Open Chrome dev tools, switch to the Network tab, select …

---

_[View the full topic](https://meta.discourse.org/t/remove-users-script-either-via-api-or-pg-available/41194)._
