# Disable and enable live application

**URL:** <https://community.wowza.com/t/disable-and-enable-live-application/53149>\
**Category:** Wowza Streaming Engine\
**Tags:** rest-api\
**Created:** [April 11, 2019, 3:52pm UTC](https://community.wowza.com/t/disable-and-enable-live-application/53149 "2019-04-11T15:52:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![subham\_prasad](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@subham\_prasad](https://community.wowza.com/u/subham_prasad)\
**Post date:** [April 11, 2019, 3:52pm UTC](https://community.wowza.com/t/disable-and-enable-live-application/53149/1 "2019-04-11T15:52:56Z")

</div>

Dear Team ,

i want to disable live application and stop accepting streaming using rest api.

---

<div class="post-metadata">

**Author:** ![Emre\_Karatasoglu\_Adv](https://avatars.discourse-cdn.com/v4/letter/e/0ea827/32.png) [@Emre\_Karatasoglu\_Adv](https://community.wowza.com/u/Emre_Karatasoglu_Adv)\
**Post date:** [April 12, 2019, 7:37am UTC](https://community.wowza.com/t/disable-and-enable-live-application/53149/2 "2019-04-12T07:37:18Z")

</div>

There is no completely stop application command , allowed operation shutdown, start, restart. When you shutdown the application with the rest api, your stream publisher will disconnect however it will connect in 10 seconds again. By the way the workaraound is ,

shutdown the application with

```auto
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' 'http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/actions/shutdown'

```

Then curl again to delete the stream publisher user to block stream again ( assume the publisher name test1 )

```auto
curl -X DELETE --header 'Accept: application/json' 'http://localhost:8087/v2/servers/_defaultServer_/publishers/test1'

```

If you want to add this user again then send request like

```auto
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ 
   "password": "test1", \ 
   "name": "test1", \ 
   "serverName": "_defaultServer_", \ 
   "description": "create the user again", \ 
   "saveFieldList": [ \ 
     "3" \ 
   ], \ 
   "version": "3" \ 
 }' 'http://localhost:8087/v2/servers/_defaultServer_/publishers'

```

Also if you want to block the watcher , you can consider changing the application watcher count 😉
