You can delete import statements for all unused packages within a file. Press &shortcut:OptimizeImports; (Code | Optimize Imports) or &shortcut:ShowIntentionActions; (when the caret is on the import statement), and then choose the corresponding quick-fix.
