This command can be used when the stm32 chip has become nonresponsive. This typically presents when the stlink programmer is responding to commands but can't connect to the MCU under test in order to program it.
Warning: This will wipe EVERYTHING from the MCU.
~/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin$ ./STM32_Programmer.sh -c port=swd INDEX=0 mode=UR -e ALL