test delete head file