it's not good to leave the onions in the ground for longer than two weeks after the tops die because they become open to organisms that can cause rot in storage, or they might even start growing again.