# How to reset Fleet / Get a new Service Token?

**URL:** <https://discuss.elastic.co/t/how-to-reset-fleet-get-a-new-service-token/276159>\
**Category:** Kibana\
**Tags:** fleet\
**Created:** [June 16, 2021, 3:36pm UTC](https://discuss.elastic.co/t/how-to-reset-fleet-get-a-new-service-token/276159 "2021-06-16T15:36:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maof97/32/101433_2.png) [@maof97](https://discuss.elastic.co/u/maof97)\
**Post date:** [June 16, 2021, 3:36pm UTC](https://discuss.elastic.co/t/how-to-reset-fleet-get-a-new-service-token/276159/1 "2021-06-16T15:36:29Z")

</div>

Hello,

I kind of crashed my fleet setup and needed to remove all agents (including the one providing the fleet "server").  
But now I can't create a new Fleet server like in the beginning where it asked me to enter an IP, generate a service token, etc..  
I tried just enrolling an agent with the default fleet server policy but it saw that just as a normal enrollment and not as a fleet server creation. I also can't find this fleet service-token anyway.

So how can I get back to that prompt in the Kibana\>Fleet\>Agents tab telling me to create my first fleet server?

I tried deleting all fleet related indices but it wouldn't let me so I am out of ideas.

---

<div class="post-metadata">

**Author:** ![nchaulet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nchaulet/32/77896_2.png) [@nchaulet](https://discuss.elastic.co/u/nchaulet)\
**Post date:** [June 16, 2021, 5:24pm UTC](https://discuss.elastic.co/t/how-to-reset-fleet-get-a-new-service-token/276159/2 "2021-06-16T17:24:29Z")

</div>

Hi

It's possible to generate a new service token if you try to add an agent to the Default fleet server.

 ![Screen Shot 2021-06-16 at 1.23.49 PM](https://us1.discourse-cdn.com/elastic/original/3X/2/7/27ea2f7ef7749a681ba180ac4f534e9190c3d3d6.png)

---

<div class="post-metadata">

**Author:** ![maof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maof97/32/101433_2.png) [@maof97](https://discuss.elastic.co/u/maof97)\
**Post date:** [June 16, 2021, 6:50pm UTC](https://discuss.elastic.co/t/how-to-reset-fleet-get-a-new-service-token/276159/3 "2021-06-16T18:50:29Z")

</div>

Thank you, didn't even realize that 😅

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 14, 2021, 6:51pm UTC](https://discuss.elastic.co/t/how-to-reset-fleet-get-a-new-service-token/276159/4 "2021-07-14T18:51:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
