# \[solved\] How to reclaim a domain at mozilla-iot.org after skiped first steps

**URL:** <https://discourse.mozilla.org/t/solved-how-to-reclaim-a-domain-at-mozilla-iot-org-after-skiped-first-steps/49218>\
**Category:** WebThings\
**Created:** [November 24, 2019, 1:33pm UTC](https://discourse.mozilla.org/t/solved-how-to-reclaim-a-domain-at-mozilla-iot-org-after-skiped-first-steps/49218 "2019-11-24T13:33:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Novski](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/novski/32/4829_2.png) [@Novski](https://discourse.mozilla.org/u/Novski)\
**Post date:** [November 24, 2019, 1:33pm UTC](https://discourse.mozilla.org/t/solved-how-to-reclaim-a-domain-at-mozilla-iot-org-after-skiped-first-steps/49218/1 "2019-11-24T13:33:58Z")

</div>

I desided to start over with my gateway and reflashed my rpi3 with 0.10. Then unfortunately i skiped the subdomain creation in the first steps of setup.  
I then read [this thread](https://discourse.mozilla.org/t/solved-how-to-reclaim-a-domain-at-mozilla-iot-org/) but i don’t know how to restart the first steps again.  
Is that possible? Or how can i reconnect my gateway to my subdomain?

---

<div class="post-metadata">

**Author:** ![mstegeman](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mstegeman](https://discourse.mozilla.org/u/mstegeman)\
**Post date:** [November 24, 2019, 5:56pm UTC](https://discourse.mozilla.org/t/solved-how-to-reclaim-a-domain-at-mozilla-iot-org-after-skiped-first-steps/49218/2 "2019-11-24T17:56:38Z")

</div>

You’ll have to do some things on the command line.

```auto
sqlite3 ~/.mozilla-iot/config/db.sqlite3 "DELETE FROM settings WHERE key = 'notunnel'"
sudo systemctl restart mozilla-iot-gateway

```

After that, the gateway should prompt you to set up your domain again. To reclaim an old one, you’ll just need to put in the same subdomain and email address you previously used. It’ll prompt you to reclaim, and then you’ll get an email with a token, which you’ll need to put in the form.

---

<div class="post-metadata">

**Author:** ![Novski](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/novski/32/4829_2.png) [@Novski](https://discourse.mozilla.org/u/Novski)\
**Post date:** [November 25, 2019, 10:10pm UTC](https://discourse.mozilla.org/t/solved-how-to-reclaim-a-domain-at-mozilla-iot-org-after-skiped-first-steps/49218/3 "2019-11-25T22:10:52Z")

</div>

worked! Thanks!  
some more bla to make a post that is 20char…

---

<div class="post-metadata">

**Author:** ![abhijit.nathwani](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@abhijit.nathwani](https://discourse.mozilla.org/u/abhijit.nathwani)\
**Post date:** [November 29, 2019, 12:25pm UTC](https://discourse.mozilla.org/t/solved-how-to-reclaim-a-domain-at-mozilla-iot-org-after-skiped-first-steps/49218/4 "2019-11-29T12:25:17Z")

</div>

@Novski Alternatively,  
Should this scenario re-occur, we now have a script in the `~/mozilla-iot/gateway/tools` directory.  
executing `$ ./remove-tunnel-token.sh` will take care of these things. It will open the `db` and remove the necessary entries.
