FIX: Do not delete from tree, but detach. This fixed an error
if one deleted a file and then altered the tree values. Also
allows for later reinsertion of deleted files