delete main file
restore main file