How to erase shapes once I added them to my chart using modebar?

Greetings,

I am using a code like the following to add drawing instruments to my modebar:

import plotly.graph_objects as go
import plotly.express as px
df = px.data.iris()
fig = px.scatter(df, x='petal_width', y='sepal_length', color='species')
fig.update_layout(
    dragmode='drawopenpath',
    newshape_line_color='cyan',
    title_text='Draw a path to separate versicolor and virginica',
    modebar_add=['drawline',
        'drawopenpath',
        'drawclosedpath',
        'drawcircle',
        'drawrect',
        'eraseshape'
       ]
)

Once I add shapes to my chart like the following, how can I delete them?

hi @python-trader

to erase the shapes you drew, select the shape by clicking on its line, then click on the erase active shape button.