# How to disable 2FA

**URL:** https://meta.discourse.org/t/how-to-disable-2fa/131475
**Category:** Support
**Created:** [October 20, 2019, 12:34pm UTC](https://meta.discourse.org/t/how-to-disable-2fa/131475 "2019-10-20T12:34:12Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)
#### Post date: [October 21, 2019, 4:44am UTC](https://meta.discourse.org/t/how-to-disable-2fa/131475/11 "2019-10-21T04:44:53Z")

</div>

The alias changed since we have multiple totps now. Also that command would remove _all_ totp instances across all users… You probably want to do the following as the second command:

`UserSecondFactor.totps.where(user_id: id).each(&:destroy!)`

---

_[View the full topic](https://meta.discourse.org/t/how-to-disable-2fa/131475)._
