Add --cached to the git rm arguments so the file is not actually deleted
Use git status --porcelain to get file status
Remove old file status code