Question is not clear. Which one? cold or warm restart?
If you want to delete all program you should cold restart the PLC. But you must load the program again. In practice, if you can not run the machine, before you should make a warm restart. If this can't solve the problem you should make a...