removes logs and wrong patch file