# How to clear all points on WorldMap on a dashboard

**URL:** <https://discourse.nodered.org/t/how-to-clear-all-points-on-worldmap-on-a-dashboard/35236>\
**Category:** General\
**Created:** [2 November 2020 19:52 UTC](https://discourse.nodered.org/t/how-to-clear-all-points-on-worldmap-on-a-dashboard/35236 "2020-11-02T19:52:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karen123](https://avatars.discourse-cdn.com/v4/letter/k/e495f1/32.png) [@Karen123](https://discourse.nodered.org/u/Karen123)\
**Post date:** [2 November 2020 19:52 UTC](https://discourse.nodered.org/t/how-to-clear-all-points-on-worldmap-on-a-dashboard/35236/1 "2020-11-02T19:52:10Z")

</div>

Hi All,

I have created a map on NodeRed and am trying to create a button to clear all points on the map. However, the flow I built does not work. I have also tried the solutions suggested in the thread ([Clear Worldmap with inject](https://discourse.nodered.org/t/clear-worldmap-with-inject/12438)), however, as I am using a button (instead of inject), the solutions suggested cannot be applied easily in my case.

The flow I built for the button is as below.

![Screenshot 2020-11-03 at 3.46.17 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/a/fa7f166be7e6d7e8e06f3b8be0a565ab8aac14d8.png)

And the function for the button is as below:

msg.payload.command.clear = "unknown";  
return msg;

Could you please advise if I have made any mistakes, or what additional nodes/ functions need to be done to build a button on a dashboard to clear all points on the WorldMap? Thanks a lot.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 January 2021 19:52 UTC](https://discourse.nodered.org/t/how-to-clear-all-points-on-worldmap-on-a-dashboard/35236/2 "2021-01-01T19:52:15Z")

</div>

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