# How unpublish transcoded streams programmably?

**URL:** <https://community.wowza.com/t/how-unpublish-transcoded-streams-programmably/43996>\
**Category:** Wowza Streaming Engine\
**Created:** [October 7, 2014, 11:20pm UTC](https://community.wowza.com/t/how-unpublish-transcoded-streams-programmably/43996 "2014-10-07T23:20:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ar\_Ba](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Ar\_Ba](https://community.wowza.com/u/Ar_Ba)\
**Post date:** [October 7, 2014, 11:20pm UTC](https://community.wowza.com/t/how-unpublish-transcoded-streams-programmably/43996/1 "2014-10-07T23:20:05Z")

</div>

Hi!

We create chat application. Using Wowza 4.1.0 with Transcoder Addon (transrate template). H

ave a problem:

1. I start live stream with name stream\_name

2. Wowza create two transcoded streams with names stream\_name\_160p, stream\_name\_source.

3. I unpublish live stream with name stream\_name. Use netStream.publish(null) in actionscript.

4. Transcoded streams exist even after the source has been unpublished.

This code not work:

```auto
stream.close();
stream.stopPublishing();

```

When i use

```auto
stream.shutdown()

```

streams are destroyed, but they don’t create when i publish source stream again.

Thank you

---

<div class="post-metadata">

**Author:** ![Ar\_Ba](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Ar\_Ba](https://community.wowza.com/u/Ar_Ba)\
**Post date:** [October 8, 2014, 5:53am UTC](https://community.wowza.com/t/how-unpublish-transcoded-streams-programmably/43996/2 "2014-10-08T05:53:58Z")

</div>

Thanks, problem solved. In actionscript need close netConnection.
