USB Disconnection

How do I do the first one?