remove a line: avoid the error filetype unknown