# removeApplication(String sName); call removed in VHost. How to do it now ?

**URL:** <https://community.wowza.com/t/removeapplication-string-sname-call-removed-in-vhost-how-to-do-it-now/37154>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [February 15, 2014, 3:37pm UTC](https://community.wowza.com/t/removeapplication-string-sname-call-removed-in-vhost-how-to-do-it-now/37154 "2014-02-15T15:37:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Pokotilo](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Alex\_Pokotilo](https://community.wowza.com/u/Alex_Pokotilo)\
**Post date:** [February 15, 2014, 3:37pm UTC](https://community.wowza.com/t/removeapplication-string-sname-call-removed-in-vhost-how-to-do-it-now/37154/1 "2014-02-15T15:37:22Z")

</div>

My AddOn supported CRUID operation since wowza 2.x and after wowza 4.0 it stop working. after investigation I found that removeApplication(String sName); not implemented

After read Wowza 4.0 release notes I found it’s really removed

Removed Server and VHost API that were old and may have caused confusion

IVHost

boolean createApplication(String sName, String sStreamType, String sContentLoc);

**boolean removeApplication(String sName);**

**String readVHostConfig(String sName);**

**boolean writeVHostConfig(String sName, String data);**

**Previously I remove applications using this call and it did the job. Wowza forget about this application immediately. Now I tried to stop application using application.shutdown(false);**

**and clean applications/appname and conf/appname directories. Even so dirictories are clean wowza still play video for this application.**

**What can I do to add CRUID for Wowza 4? I don’t know what problem may caused the function but now I really have a big problem as my clients drop my line**

---

<div class="post-metadata">

**Author:** ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)\
**Post date:** [February 16, 2014, 3:19am UTC](https://community.wowza.com/t/removeapplication-string-sname-call-removed-in-vhost-how-to-do-it-now/37154/2 "2014-02-16T03:19:34Z")

</div>

Hi,

You need to iterate through the applicaiton for app instances, get clients - RTMP/HTTP/RTP disconnect them and then shutdown the application.

The removeApplication was removed as it was incomplete as an implementation and also documentation.

Andrew.
