intellij remove unused imports in all files code example
Example: intellij remove unused imports
For some older versions it is apparently Ctrl + Option + O . Choose the project/module you want to remove unused import from in Project view. Then from Code menu choose Optimize imports and confirm with Run.