# Disconnecting all listeners via API

**URL:** <https://community.wowza.com/t/disconnecting-all-listeners-via-api/53862>\
**Category:** Wowza Streaming Engine\
**Tags:** rest-api\
**Created:** [August 26, 2019, 6:16pm UTC](https://community.wowza.com/t/disconnecting-all-listeners-via-api/53862 "2019-08-26T18:16:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tech\_Department](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/tech_department/32/795_2.png) [@Tech\_Department](https://community.wowza.com/u/Tech_Department)\
**Post date:** [August 26, 2019, 6:16pm UTC](https://community.wowza.com/t/disconnecting-all-listeners-via-api/53862/1 "2019-08-26T18:16:28Z")

</div>

Hello everyone!

All I am trying to do is use a REST API command to force all attached stream listeners to disconnect.

I am aware that there is a API to kill an incoming stream, but after further reading, this only works when the stream was started by the Wowza Streaming Engine itself, not from an outside encoder - so no good for me.

IT REALLY DOES NOT not matter how it is done, as long as all listeners are dumped and they have to reconnect again.

Any help would be greatly appreciated.

Than you!

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [August 26, 2019, 10:35pm UTC](https://community.wowza.com/t/disconnecting-all-listeners-via-api/53862/2 "2019-08-26T22:35:59Z")

</div>

Let me see what I can find out for you on this @Tech Department

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [August 26, 2019, 10:52pm UTC](https://community.wowza.com/t/disconnecting-all-listeners-via-api/53862/3 "2019-08-26T22:52:47Z")

</div>

We have a solution for you and it’s the only way we know for you to do this with the REST API. Use the rest API call to restart the live application. It would restart all the packetizers/stream connections.

[https://www.wowza.com/docs/application-management-query-examples#restart](https://www.wowza.com/docs/application-management-query-examples#restart)

---

<div class="post-metadata">

**Author:** ![Tech\_Department](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/tech_department/32/795_2.png) [@Tech\_Department](https://community.wowza.com/u/Tech_Department)\
**Post date:** [August 27, 2019, 1:41pm UTC](https://community.wowza.com/t/disconnecting-all-listeners-via-api/53862/4 "2019-08-27T13:41:50Z")

</div>

Thank you for the reply @Rose! That will not work, we cannot kill all incoming streams just for one. I will look into another solution.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [August 27, 2019, 3:17pm UTC](https://community.wowza.com/t/disconnecting-all-listeners-via-api/53862/5 "2019-08-27T15:17:34Z")

</div>

Let me check back in with tech support and see what we can come up with.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [August 27, 2019, 3:56pm UTC](https://community.wowza.com/t/disconnecting-all-listeners-via-api/53862/6 "2019-08-27T15:56:29Z")

</div>

@Tech Department, can you share more info on your workflow so the engineers can articulate a potential solution? Thanks.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [August 27, 2019, 3:59pm UTC](https://community.wowza.com/t/disconnecting-all-listeners-via-api/53862/7 "2019-08-27T15:59:41Z")

</div>

You are welcome to submit a support ticket @Tech Department if you’d rather not seek a detailed solution here in the forums. It can be kind of difficult without having access to your config and files.

Our engineers are interested though in helping you find a way and run some tests on it in a non-production environment. You can submit a support ticket here if you’d like:

[https://www.wowza.com/support/open-ticket](https://www.wowza.com/support/open-ticket)
