Delete mainfile