# Create user without sending invite

**URL:** https://meta.discourse.org/t/create-user-without-sending-invite/240060
**Category:** Support
**Tags:** invites
**Created:** [September 26, 2022, 8:44am UTC](https://meta.discourse.org/t/create-user-without-sending-invite/240060 "2022-09-26T08:44:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jlgarnier](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jlgarnier](https://meta.discourse.org/u/jlgarnier)
#### Post date: [September 26, 2022, 8:44am UTC](https://meta.discourse.org/t/create-user-without-sending-invite/240060/1 "2022-09-26T08:44:36Z")

</div>

Dear Community,

I’ve found useful information in an old post [Can I add users to Discourse without sending invites? - #2 by Pravi](https://meta.discourse.org/t/can-i-add-users-to-discourse-without-sending-invites/149709/2)), but would like to know where I can find information on the other commands I can throw at the app using this Rails console.

For example, I made a mistake with the username and couldn’t find how to list existing users / delete a specific user. Is there any documentation for this (i.e. `User.delete(username:"fakeuser"`))? Google wan’t helpful today…

Thanks in advance for any help!

---

<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: [September 26, 2022, 11:29am UTC](https://meta.discourse.org/t/create-user-without-sending-invite/240060/2 "2022-09-26T11:29:45Z")

</div>

I think that [Administrative Bulk Operations](https://meta.discourse.org/t/administrative-bulk-operations/118349) might offer some clues.

```
 User.find_by_username('oops').destroy

```

---

<div class="post-metadata">

### Author: ![jlgarnier](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jlgarnier](https://meta.discourse.org/u/jlgarnier)
#### Post date: [September 27, 2022, 7:50am UTC](https://meta.discourse.org/t/create-user-without-sending-invite/240060/3 "2022-09-27T07:50:15Z")

</div>

It works fine, thanks a lot!  
Where can I find the full list of commands available from the command line?

Thanks again for your help!

---

<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: [September 27, 2022, 9:11am UTC](https://meta.discourse.org/t/create-user-without-sending-invite/240060/4 "2022-09-27T09:11:14Z")

</div>

Tree complete list is the source code. The link I provided gives some more examples.
