How does USB reconnect with the PC without being pulled out?

My board is STM32f072B But I have a question, I can plug and reconnect to the PC in USB, but I think it is too much trouble and take time. Is there any way to reconnect without pulling the USB cable PC?