- pymaid.delete_neuron(x, no_prompt=False, remote_instance=None)¶
Completely delete neurons.
Use this with EXTREME caution as this is irreversible! Your only chance to recover accidentally deleted neurons is asking a server admin for help.
Deletes a neuron if (and only if!) two conditions are met:
You own all nodes of the skeleton making up the neuron in question.
The neuron is not annotated by other users.
Neurons to delete. Can be either:
list of skeleton ID(s) (int or str)
list of neuron name(s) (str, exact match)
an annotation: e.g. ‘annotation:PN right’
CatmaidNeuron or CatmaidNeuronList object
no_prompt (bool, optional) – By default, you will be prompted to confirm before deleting the neuron(s). Set this to True to skip that step.
remote_instance (CatmaidInstance, optional) – If not passed directly, will try using global.
- Return type