delete_data

sherpa.ui.delete_data(id=None)

Delete a data set by identifier.

The data set, and any associated structures - such as the ARF and RMF for PHA data sets - are removed.

Parameters:id (int or str, optional) – The data set to delete. If not given then the default identifier is used, as returned by get_default_id.

See also

clean()
Clear all stored session data.
copy_data()
Copy a data set to a new identifier.
delete_model()
Delete the model expression from a data set.
get_default_id()
Return the default data set identifier.
list_data_ids()
List the identifiers for the loaded data sets.

Notes

The source expression is not removed by this function.

Examples

Delete the data from the default data set:

>>> delete_data()

Delete the data set identified as ‘src’:

>>> delete_data('src')