Skip to content

Deleting series and subjects

Tom Doel edited this page Oct 20, 2019 · 1 revision

To delete a series

  • Use the backpsace key shortcut to delete the current series.
  • Or click the - button above the series list to delete the current series.
  • Or delete any series by right-clicking the name of the series you want to delete and choosing Delete Series.
  • Or you can use the API as described below.

To delete a subject

  • Or click the - button above the series list to delete the current subject.
  • Or delete any series by right-clicking the name of the subject you want to delete and choosing Delete Subject.
  • Or you can use the API as described below.

To delete multiple series

You can use the API to delete multiple series by deleting each series for each patient. The DeleteDatasets() call on a PTKMain() object takes in a cell array which are the series uids to delete. For example the following script will delete every patient and every series:

ptk_main = PTKMain();
series_uids_to_delete = ['uid1', 'uid2;, 'uid3'];
ptk_main.DeleteDatasets(series_uids_to_delete); 

For example, to delete all series for all subjects

ptk_main = PTKMain();
% Delete all series for all subjects
all_uids = ptk_main.FrameworkAppDef.GetFrameworkDirectories().GetUidsOfAllDatasetsInCache();
ptk_main.DeleteDatasets(all_uids);