# DELETE "ghost" sessions on openvidu server

**URL:** <https://openvidu.discourse.group/t/delete-ghost-sessions-on-openvidu-server/372>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [April 1, 2020, 3:58am UTC](https://openvidu.discourse.group/t/delete-ghost-sessions-on-openvidu-server/372 "2020-04-01T03:58:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodilki](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@Rodilki](https://openvidu.discourse.group/u/Rodilki)\
**Post date:** [April 1, 2020, 3:58am UTC](https://openvidu.discourse.group/t/delete-ghost-sessions-on-openvidu-server/372/1 "2020-04-01T03:58:41Z")

</div>

Hello,  
I’m implementing a video chat with high room turnover, and after some time the servers start to persist some sessions opened that cannot be deleted by calling DELETE `/api/sessions/<SESSION_ID>`.

i have many sessions like these :  
{“sessionId”:“10430085ac31d83d8708f0a9be5e632e”,“createdAt”:1585590390052,“mediaMode”:“ROUTED”,“recordingMode”:“MANUAL”,“defaultOutputMode”:“COMPOSED”,“defaultRecordingLayout”:“BEST\_FIT”,“customSessionId”:“10430085ac31d83d8708f0a9be5e632e”,“connections”:{“numberOfElements”:0,“content”:[]},“recording”:false},{“sessionId”:“0af7f415979fc3370b1ef5d0ee486d71”,“createdAt”:1585664308921,“mediaMode”:“ROUTED”,“recordingMode”:“MANUAL”,“defaultOutputMode”:“COMPOSED”,“defaultRecordingLayout”:“BEST\_FIT”,“customSessionId”:“0af7f415979fc3370b1ef5d0ee486d71”,“connections”:{“numberOfElements”:0,“content”:[]},“recording”:false},

sessions created by hours or even days, that apperars on GET `/api/sessions`, and the only way to destroy them its restarting the services of Openvidu and KMS, i tryed to call destroy method on each of them but didn’t get success.

Any advices about this? Is this an normal behavior?

Regards

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [April 1, 2020, 5:41pm UTC](https://openvidu.discourse.group/t/delete-ghost-sessions-on-openvidu-server/372/2 "2020-04-01T17:41:16Z")

</div>

Hi,

Which version of OpenVidu are you using? 2.12.0 introduced some bug fixes that helped with these ghost sessions.

If you are using 2.12.0 and you are still getting this issue, we have already identified some more extreme corner cases that may end with these ghost sessions. Already working on it. 2.13.0 will be out soon.

Regards.

---

<div class="post-metadata">

**Author:** ![Rodilki](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@Rodilki](https://openvidu.discourse.group/u/Rodilki)\
**Post date:** [April 3, 2020, 3:44am UTC](https://openvidu.discourse.group/t/delete-ghost-sessions-on-openvidu-server/372/3 "2020-04-03T03:44:13Z")

</div>

Hi,  
I’m currently using version 2.12.0.  
Thanks for the answer i will wait the next version 2.13.0

By the way I’m developing a mobile app with react-native from scratch based on openvidu-react tutorial, and face an error, when i searched for a solituion i found this answare [issue](https://github.com/OpenVidu/openvidu/issues/342), is it true? i need to buy one license? if yes , please give me more information about this

---

<div class="post-metadata">

**Author:** ![CSantosM](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/csantosm/32/16_2.png) [@CSantosM](https://openvidu.discourse.group/u/CSantosM)\
**Post date:** [April 3, 2020, 6:53am UTC](https://openvidu.discourse.group/t/delete-ghost-sessions-on-openvidu-server/372/4 "2020-04-03T06:53:55Z")

</div>

Hello,  
As you can read in OpenVidu docs…

 ![image](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/88110d0decf2dd43f6b95618d10ffff612349219.jpeg)

Contact us through [openvidu@gmail.com](mailto:openvidu@gmail.com) or [Commercial support](https://openvidu.io/commercial)

Regards
