Deleting Users in rails console

I encountered the same error:

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. :slight_smile:
Also, what would be the command to delete a user using its email address then?