Clear marking (unmark)

1
2
3
4
5
6
7
from Spotfire.Dxp.Data import DataManager 
from Spotfire.Dxp.Data import IndexSet
from Spotfire.Dxp.Data import RowSelection

marking=Application.GetService[DataManager]().Markings[markingName]
selectRows = IndexSet(dataTable.RowCount, False)
marking.SetSelection(RowSelection(selectRows),dataTable)

Input:
markingName (String): The name of the marking profile to clear.
dataTable (Data Table): The data table that currently has the marking applied.