Mechanisms of nervous system disassembly