# WSLink launcher is not deleting services

**URL:** https://discourse.vtk.org/t/wslink-launcher-is-not-deleting-services/10248
**Category:** Web
**Created:** [December 19, 2022, 10:08am UTC](https://discourse.vtk.org/t/wslink-launcher-is-not-deleting-services/10248 "2022-12-19T10:08:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aji](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@aji](https://discourse.vtk.org/u/aji)
#### Post date: [December 19, 2022, 10:08am UTC](https://discourse.vtk.org/t/wslink-launcher-is-not-deleting-services/10248/1 "2022-12-19T10:08:20Z")

</div>

WSLink launcher is not deleting services. There is bug in code in following file

> <https://github.com/Kitware/wslink/blob/master/python/src/wslink/backends/aiohttp/launcher.py>

```
web_app.add_routes(
    [
        aiohttp_web.post(endpoint, launcher_resource.handle_post),
        aiohttp_web.get(endpoint+'{id}', launcher_resource.handle_get),
        aiohttp_web.delete(endpoint+'{id}', launcher_resource.handle_delete),
    ]
)

```

+‘{id}’ part is missing in get and delete. After the above change service deletion is working fine. Kindly look in to it.

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [December 19, 2022, 9:14pm UTC](https://discourse.vtk.org/t/wslink-launcher-is-not-deleting-services/10248/2 "2022-12-19T21:14:17Z")

</div>

wslink==1.9.3 should fix that issue. Thanks for reporting it.

Although, I think I want to make those endpoint optional since they can pause a security concern.

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [December 20, 2022, 12:46am UTC](https://discourse.vtk.org/t/wslink-launcher-is-not-deleting-services/10248/3 "2022-12-20T00:46:20Z")

</div>

In 1.10.0, I’ve made those endpoint optional. You can look at the [README](https://github.com/Kitware/wslink/tree/master/python#configure-from-environment-variables) how to enable them using environment variables.

---

<div class="post-metadata">

### Author: ![aji](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@aji](https://discourse.vtk.org/u/aji)
#### Post date: [December 20, 2022, 4:51am UTC](https://discourse.vtk.org/t/wslink-launcher-is-not-deleting-services/10248/4 "2022-12-20T04:51:37Z")

</div>

Thanks a lot
