Given that your project is already linked to the git repo, you can simply use the standard intellij function to “delete” the file.
In the project area, center the file and press the key Delete. The "Safe Delete" pop-up will appear, click OK.
9: Version Control → Local Changes, "" - git .
: intellij , .
intellij, , , .
git rm, , .
, .gitignore, intellij. - *.iml .idea.
, , , intellij.