# What happens if I deleted my user account on the TTN account server (http://account.thethingsnetwork.org)?

**URL:** <https://www.thethingsnetwork.org/forum/t/what-happens-if-i-deleted-my-user-account-on-the-ttn-account-server-http-account-thethingsnetwork-org/6926>\
**Category:** v2 Backend\
**Created:** [April 26, 2017, 11:52am UTC](https://www.thethingsnetwork.org/forum/t/what-happens-if-i-deleted-my-user-account-on-the-ttn-account-server-http-account-thethingsnetwork-org/6926 "2017-04-26T11:52:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoonppark](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/hoonppark/32/7999_2.png) [@hoonppark](https://www.thethingsnetwork.org/forum/u/hoonppark)\
**Post date:** [April 26, 2017, 11:52am UTC](https://www.thethingsnetwork.org/forum/t/what-happens-if-i-deleted-my-user-account-on-the-ttn-account-server-http-account-thethingsnetwork-org/6926/1 "2017-04-26T11:52:42Z")

</div>

I’d like to understand what happens if I delete my user account on the TTN account server ([http://account.thethingsnetwork.org](http://account.thethingsnetwork.org))?

If I deleted my own user account on the account server, is it going to remove all applications and devices registered under my account and then remove my account? Or, is it going to delete my account info on the account server only without deleting all applications and devices registered under my account ?

---

<div class="post-metadata">

**Author:** ![kiwiclan](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kiwiclan/32/27789_2.png) [@kiwiclan](https://www.thethingsnetwork.org/forum/u/kiwiclan)\
**Post date:** [April 26, 2017, 12:56pm UTC](https://www.thethingsnetwork.org/forum/t/what-happens-if-i-deleted-my-user-account-on-the-ttn-account-server-http-account-thethingsnetwork-org/6926/2 "2017-04-26T12:56:03Z")

</div>

Indeed. Good question. As for some devices that use the mac address as a device ID, such as the lopy, it would effectively leave the device bricked as you couldn’t use it anymore as device IDs have to be unique within the ttn.

I think in order to develop practical way of workings for deployment we need to have this fully defined. Also, are items that were keys under one account re-creatable in a new account. I asked the question earlier but didn’t get a satisfactory answer.

Kim

---

<div class="post-metadata">

**Author:** ![htdvisser](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/htdvisser/32/45312_2.png) [@htdvisser](https://www.thethingsnetwork.org/forum/u/htdvisser)\
**Post date:** [April 27, 2017, 6:52am UTC](https://www.thethingsnetwork.org/forum/t/what-happens-if-i-deleted-my-user-account-on-the-ttn-account-server-http-account-thethingsnetwork-org/6926/3 "2017-04-27T06:52:04Z")

</div>

As TTN is a distributed network, the Account Server does not know anything about devices. You can have different applications and devices registered at different Handlers and NetworkServers, or even at private networks that use our account server. Deleting your account simply revokes the access, it is your own responsibility to unregister your devices.

---

<div class="post-metadata">

**Author:** ![hoonppark](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/hoonppark/32/7999_2.png) [@hoonppark](https://www.thethingsnetwork.org/forum/u/hoonppark)\
**Post date:** [April 27, 2017, 7:11am UTC](https://www.thethingsnetwork.org/forum/t/what-happens-if-i-deleted-my-user-account-on-the-ttn-account-server-http-account-thethingsnetwork-org/6926/4 "2017-04-27T07:11:22Z")

</div>

@htdvisser,

So, if I wanted to delete my account on the TTN account server, I believe I need to do it in the following steps:

STEP 1. I have to unregister all my applications one by one using ‘ttnctl applications unregister [app-id]’. I believe this command will also unregister all devices registered under the ‘app-id’.

STEP 2. Delete all my gateways registered under my user name, using ‘ttnctl gateways delete [GatewayID]’ command for each gateway.

STEP 3. At this point, all my devices and gateways have been deleted from TTN server and TTN account server. Now,  
I delete my account on the TTN account server.

---

<div class="post-metadata">

**Author:** ![TijnOnlijn](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/tijnonlijn/32/27494_2.png) [@TijnOnlijn](https://www.thethingsnetwork.org/forum/u/TijnOnlijn)\
**Post date:** [April 27, 2017, 7:26am UTC](https://www.thethingsnetwork.org/forum/t/what-happens-if-i-deleted-my-user-account-on-the-ttn-account-server-http-account-thethingsnetwork-org/6926/5 "2017-04-27T07:26:44Z")

</div>

Why isn’t the application and its devices simply deleted once the last user account with access has been removed? I mean it seems there’s no way it can even be useful anymore except from blocking the id?

---

<div class="post-metadata">

**Author:** ![htdvisser](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/htdvisser/32/45312_2.png) [@htdvisser](https://www.thethingsnetwork.org/forum/u/htdvisser)\
**Post date:** [April 28, 2017, 8:12am UTC](https://www.thethingsnetwork.org/forum/t/what-happens-if-i-deleted-my-user-account-on-the-ttn-account-server-http-account-thethingsnetwork-org/6926/6 "2017-04-28T08:12:55Z")

</div>

@hoonppark: Correct. We might add a feature to the console that does all this in one step, but for now this is indeed the procedure.

@TijnOnlijn: Because the Account Server does not know anything about devices, and the Backend doesn’t know anything about users. The only link between the two parts is the fact that the Account server signs JWTs (certificates) for users, confirming that the holder of this JWT has access to the devices of a certain application ID.

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [June 6, 2018, 10:02am UTC](https://www.thethingsnetwork.org/forum/t/what-happens-if-i-deleted-my-user-account-on-the-ttn-account-server-http-account-thethingsnetwork-org/6926/8 "2018-06-06T10:02:43Z")

</div>

> [@kashif95](#):
>
> I need help

I suggest you send a PM with your credentials (previous account name / gateway ID ect) to  
@rish

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [June 6, 2018, 10:11am UTC](https://www.thethingsnetwork.org/forum/t/what-happens-if-i-deleted-my-user-account-on-the-ttn-account-server-http-account-thethingsnetwork-org/6926/9 "2018-06-06T10:11:28Z")

</div>



---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [May 19, 2020, 12:19pm UTC](https://www.thethingsnetwork.org/forum/t/what-happens-if-i-deleted-my-user-account-on-the-ttn-account-server-http-account-thethingsnetwork-org/6926/10 "2020-05-19T12:19:49Z")

</div>



---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [May 19, 2020, 12:20pm UTC](https://www.thethingsnetwork.org/forum/t/what-happens-if-i-deleted-my-user-account-on-the-ttn-account-server-http-account-thethingsnetwork-org/6926/11 "2020-05-19T12:20:41Z")

</div>

For future readers:

> [@hoonppark](#):
>
> STEP 2. Delete all my gateways registered under my user name, using ‘ttnctl gateways delete [GatewayID]’ command for each gateway.

It seems that might be dangerous:

> [@Can't Register Gateway, EUI is still in use](https://www.thethingsnetwork.org/forum/t/cant-register-gateway-eui-is-still-in-use/12161/3):
>
> Due to the long validity of (old) gateway access tokens, we can’t release gateway IDs to be registered by different users. If you still had access to your old account you could have transferred the ownership of the gateway to your other account, but if your old account is deleted, that will not work.
> 
> You could register your gateway under a different EUI, or you could register a human-readable GatewayID and use an MQTT forwarder to connect to TTN.
