# Deleting Users in rails console

**URL:** <https://meta.discourse.org/t/deleting-users-in-rails-console/141540>\
**Category:** Product Support\
**Created:** [February 13, 2020, 7:26pm UTC](https://meta.discourse.org/t/deleting-users-in-rails-console/141540 "2020-02-13T19:26:34Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [September 9, 2020, 9:32pm UTC](https://meta.discourse.org/t/deleting-users-in-rails-console/141540/6 "2020-09-09T21:32:58Z")

</div>

> [@arivanandan](#):
>
> (Unable to use email for some reason)

I encountered the same error:

```plaintext
UndefinedColumn: ERROR: column users.email does not exist
LINE 1: SELECT "users".* FROM "users" WHERE "users"."email" = 'test'...

```

I think jomaxro’s reply could be updated with a working example. 🙂  
Also, what would be the command to delete a user using its email address then?

---

_[View the full topic](https://meta.discourse.org/t/deleting-users-in-rails-console/141540)._
