# Delete user from discourse-docker using ssh

**URL:** <https://meta.discourse.org/t/delete-user-from-discourse-docker-using-ssh/37820>\
**Category:** Support\
**Created:** [January 12, 2016, 12:57pm UTC](https://meta.discourse.org/t/delete-user-from-discourse-docker-using-ssh/37820 "2016-01-12T12:57:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [January 12, 2016, 3:01pm UTC](https://meta.discourse.org/t/delete-user-from-discourse-docker-using-ssh/37820/2 "2016-01-12T15:01:15Z")

</div>

As you said, you can enter the container with

```shell
./launcher enter app

```

Then, you will need to launch the [rails console](http://guides.rubyonrails.org/command_line.html#rails-console) with

```shell
rails c

```

Once you’re in the rails console, you can delete a user with

```ruby
User.find_by(username: "foobar").destroy

```

---

_[View the full topic](https://meta.discourse.org/t/delete-user-from-discourse-docker-using-ssh/37820)._
