Remove users script either via API or PG available?

API definitely, you simply have to open the Dev Tools/Console of your browser, go to the Network tab, perform the action in the browser and see what calls show up in the Network tab, that will tell you how to implement it via API.

You should be able to do it via Rails Console too