Unable to remove subject

HI,

I cannot remove a subject from the anat or functional tree. This happened after I tried to rename a subject and experienced some kind of aborted qlogin session. This left folders with both old and new subject names, some of then with partial contents. I restored the files from a backup and removed the folders associated with the new subject name, but it still shows up. Is there a way to manually edit some file to remove it?

Thanks,
-Jeff

Hi Jeff,

To force the deletion of the subject “SubjectName”, you can do the following:

  • Select your protocol where you have this problem
  • Menu File > Delete protocol > Only detach from database
  • Close Matlab
  • Delete the two folders: protocol_name/anat/SubjectName and protocol_name/data/SubjectName
  • Delete the file: protocol/data/protocol.mat
  • Restart Matlab and Brainstorm
  • Menu File > Load protocol > Load from folder > protocol_name

Cheers,
Francois

I was able to delete it before I got your instructions, but will save for future reference.
-Jeff

Hi again,

I tried your deleteion method and cannot get it to work for the Test subject shown in the screenshot. I am not sure I even created this subject - I think it was created when I made some simulations, which I also cannot delete now. They are gone, but keep showing up ni the list.

-Jeff


Hi Jeff,
Which of the step I was suggesting previously is giving you a hard time?
Francois

[QUOTE=Francois;7184]1) Select your protocol where you have this problem
2) Menu File > Delete protocol > Only detach from database
3) Close Matlab
4) Delete the two folders: protocol_name/anat/SubjectName and protocol_name/data/SubjectName
5) Delete the file: protocol/data/protocol.mat
6) Restart Matlab and Brainstorm
7) Menu File > Load protocol > Load from folder > protocol_name[/QUOTE]

Francois,

None of them. I do them all and then load and the subject is still there.
-Jeff

  1. Is this one of the subjects you tried to renamed but you stopped Matlab before it finishes?
    If the structure of the database is correct, the procedure I gave you should work if all the steps are executed in this order. The only references to a subject are the two folders protocol_name/anat and protocol_name/data, and the protocol structure (protocol_name/data/protocol.mat).

  2. What happens exactly when you try to delete the subject from the Brainstorm database explorer?
    Does it disappear from the tree?

  3. Are you using Matlab 2014b pre-release?

  4. At step #5: Is there a file named protocol_name/data/protocol.mat ?

I was successful. I may have messed up step 5 before.
-Jeff