# Mappedin Paths Issue

**URL:** <https://community.mappedin.com/t/mappedin-paths-issue/173>\
**Category:** Mappedin JS\
**Created:** [October 20, 2024, 11:02am UTC](https://community.mappedin.com/t/mappedin-paths-issue/173 "2024-10-20T11:02:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jovana\_Stefanovic](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/jovana_stefanovic/32/94_2.png) [@Jovana\_Stefanovic](https://community.mappedin.com/u/Jovana_Stefanovic)\
**Post date:** [October 20, 2024, 11:02am UTC](https://community.mappedin.com/t/mappedin-paths-issue/173/1 "2024-10-20T11:02:39Z")

</div>

Hello!

I have recently upgraded from alpha version to Mappedin SDK - v6.0.1-beta.8. For some reason my path does not get cleared anymore even though I haven’t changed anything in the code. Are there any differences in how the paths are cleared in beta version? Here is how I did it previously and it worked well.  
// Reset the navigation state  
startSpace = null;  
endSpace = null;

```
  // Clear paths and markers
  navigationState.isPathDrawn = false;
  mapView.Paths.removeAll();
  mapView.Markers.removeAll();
  setSpaceInteractivity(true);

```

---

<div class="post-metadata">

**Author:** ![msohm](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/msohm/32/6_2.png) [@msohm](https://community.mappedin.com/u/msohm)\
**Post date:** [October 21, 2024, 2:19pm UTC](https://community.mappedin.com/t/mappedin-paths-issue/173/2 "2024-10-21T14:19:30Z")

</div>

v6.0.1-beta.8. has an issue where calling `Paths.removeAll()` does not remove paths that are still being drawn. This may be what you are encountering. As a workaround you could await the drawing of the path and then call `removeAll()`. We will release a fix for this issue within the week.

---

<div class="post-metadata">

**Author:** ![Zach](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/zach/32/70_2.png) [@Zach](https://community.mappedin.com/u/Zach)\
**Post date:** [October 30, 2024, 5:43pm UTC](https://community.mappedin.com/t/mappedin-paths-issue/173/3 "2024-10-30T17:43:33Z")

</div>

Hi Jovana,

This issue has been resolved in v6.0.1-beta.11 ([release notes](https://community.mappedin.com/t/web-sdk-react-sdk-v6-0-1-beta-11/176)).

Your existing code from alpha versions should work as expected now.
