Purge Subject
purge_subjectDelete all cortical_tiles derivatives for one subject: per-subject NIfTI files, subdirectories, and aggregated array/CSV rows. Preview deletions first with dry_run=True.
Instructions
Remove all cortical_tiles derivatives for a single subject.
Deletes per-subject NIfTI files (crops, labels, extremities, distbottom), per-subject subdirectories (skeletons/, foldlabels/, transforms/, distmaps/), and filters the subject's row from aggregated .npy arrays and their subject CSVs.
Use dry_run=True to preview what would be deleted without modifying anything.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"derivatives": "<derivatives>",
"subject": "<subject>"
},
"name": "purge_subject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| subject | Yes | ||
| derivatives | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||