Mechanism of ciliary disassembly