You're currently browsing the Ignition 7.9 docs. Click here to view the latest docs.

The following feature is new in Ignition version 7.9.7
Click here to check out the other new features
This function is used in Python Scripting.


Takes a dataset and returns a new dataset with all of the same column names, but all of the rows deleted.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.



  • Parameters

Dataset dataset - The starting dataset. If NULL, a NULL dataset will be returned.

  • Returns

Dataset - A new dataset with no data.

  • Scope


Code Examples
Code Snippet
# This example pulls in the dataset from a Table component, clears it, then writes the empty dataset back to the table.

data = event.source.parent.getComponent('Table').data
event.source.parent.getComponent('Table').data = system.dataset.clearDataset(data)
  • No labels