Release the switch and immediately toggle it back to within 3 seconds. The LED will blink quickly, indicating the memory is being wiped.

How do you reset a SIMATIC S7-300 CPU and MMC (default ... - Support