# Is there a way to force a mass logout?

**URL:** <https://meta.discourse.org/t/is-there-a-way-to-force-a-mass-logout/28862>\
**Category:** Support\
**Created:** [2015年五月15日 14:33 UTC](https://meta.discourse.org/t/is-there-a-way-to-force-a-mass-logout/28862 "2015-05-15T14:33:19Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年十月13日 22:34 UTC](https://meta.discourse.org/t/is-there-a-way-to-force-a-mass-logout/28862/9 "2017-10-13T22:34:47Z")

</div>

`UserAuthToken.destroy_all` would do the trick, you also would want to revoke api keys so that is 2 additional tables to nuke, `ApiKey` and `UserApiKey`.

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-force-a-mass-logout/28862)._
