remove unnecessary arch and file