# Reduce number of subsessions after creating

**URL:** <https://devforum.zoom.us/t/reduce-number-of-subsessions-after-creating/99156>\
**Category:** Web\
**Created:** [November 28, 2023, 12:37pm UTC](https://devforum.zoom.us/t/reduce-number-of-subsessions-after-creating/99156 "2023-11-28T12:37:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![godwin.owonam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/godwin.owonam/32/53602_2.png) [@godwin.owonam](https://devforum.zoom.us/u/godwin.owonam)\
**Post date:** [November 28, 2023, 12:37pm UTC](https://devforum.zoom.us/t/reduce-number-of-subsessions-after-creating/99156/1 "2023-11-28T12:37:47Z")

</div>

**Description**  
So I have a need to reduce the number of subsessions created for example from 4 to 2. But the Video SDK only allows for adding subsessions and not removing them. I want to know if there is provision for reducing the number of subsessions or removing the subsessions after creating them.

**Which Web Video SDK version?**  
1.9.8

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [November 29, 2023, 1:55am UTC](https://devforum.zoom.us/t/reduce-number-of-subsessions-after-creating/99156/2 "2023-11-29T01:55:52Z")

</div>

Hey @godwin.owonam

Thanks for your feedback.

It doesn’t matter.

You can create more sub-sessions than you actually need, but the ones that are truly enabled are those passed in the `openSubsessions` method.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![godwin.owonam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/godwin.owonam/32/53602_2.png) [@godwin.owonam](https://devforum.zoom.us/u/godwin.owonam)\
**Post date:** [November 29, 2023, 8:24am UTC](https://devforum.zoom.us/t/reduce-number-of-subsessions-after-creating/99156/3 "2023-11-29T08:24:05Z")

</div>

Thanks for your reply @vic.yang

What I was asking was if it was possible to remove already created subsessions?

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [November 29, 2023, 8:47am UTC](https://devforum.zoom.us/t/reduce-number-of-subsessions-after-creating/99156/4 "2023-11-29T08:47:23Z")

</div>

Hey @godwin.owonam

We currently do not provide a method to remove a subsession. However, as mentioned above, if a subsession is not needed, you can simply omit it in the `openSubsessions` method.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![godwin.owonam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/godwin.owonam/32/53602_2.png) [@godwin.owonam](https://devforum.zoom.us/u/godwin.owonam)\
**Post date:** [November 29, 2023, 9:01am UTC](https://devforum.zoom.us/t/reduce-number-of-subsessions-after-creating/99156/5 "2023-11-29T09:01:37Z")

</div>

Alright.

Many thanks @vic.yang  
It’s relieving to know this. Although I would have loved it otherwise but thanks for the workaround.

---

<div class="post-metadata">

**Author:** ![godwin.owonam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/godwin.owonam/32/53602_2.png) [@godwin.owonam](https://devforum.zoom.us/u/godwin.owonam)\
**Post date:** [November 29, 2023, 9:12am UTC](https://devforum.zoom.us/t/reduce-number-of-subsessions-after-creating/99156/6 "2023-11-29T09:12:26Z")

</div>

However @vic.yang  
Say I opened 5 subsessions the first time and then choose to open 2 the next time, what happens to the users in the other 3 subsessions, do they get reassigned to the 2 subsessions that have been opened?

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [November 29, 2023, 9:24am UTC](https://devforum.zoom.us/t/reduce-number-of-subsessions-after-creating/99156/7 "2023-11-29T09:24:58Z")

</div>

Hey @godwin.owonam

No. You need to manually assign users from the other 3 subsessions to these 2 subsessions.

In short, the `subsessions` specified in `openSubsessions` method represent the final state of the subsessions you are going to open."

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 29, 2023, 7:25pm UTC](https://devforum.zoom.us/t/reduce-number-of-subsessions-after-creating/99156/8 "2023-12-29T19:25:02Z")

</div>

Closed on December 29, 2023, 7:25pm UTC

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