Add ignore file and delete unrelated files.