del txt file and remove code which type is 3