# How can I remove plotly select box after the selection is done

**URL:** <https://community.plotly.com/t/how-can-i-remove-plotly-select-box-after-the-selection-is-done/2716>\
**Category:** plotly.js\
**Created:** [November 18, 2016, 7:52am UTC](https://community.plotly.com/t/how-can-i-remove-plotly-select-box-after-the-selection-is-done/2716 "2016-11-18T07:52:17Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![henning](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/henning/32/28397_2.png) [@henning](https://community.plotly.com/u/henning)\
**Post date:** [July 4, 2024, 5:40pm UTC](https://community.plotly.com/t/how-can-i-remove-plotly-select-box-after-the-selection-is-done/2716/15 "2024-07-04T17:40:03Z")

</div>

> [@Deselecting points on plotly click event](https://community.plotly.com/t/deselecting-points-on-plotly-click-event/34934/3):
>
> I have the same issue. I am using Plotly [https://cdn.plot.ly/plotly-2.32.0.min.js](https://cdn.plot.ly/plotly-2.32.0.min.js) I am trying to deselect the lasso selection programmatically. The following two approaches work in version 1.58.5: Plotly.restyle(graphDiv, 'selectedpoints', null) and Plotly.restyle(graphDiv, {selectedpoints: [null]}) In the current versions 2.32.0 and 2.33.0 it does not work anymore. Is there a new alternative?

---

_[View the full topic](https://community.plotly.com/t/how-can-i-remove-plotly-select-box-after-the-selection-is-done/2716)._
