You can go to Preferences -> Build, Execution, Deployment -> Build Tools -> Maven -> Importing and check the box that says Import Maven projects automatically.

In Mac, you can do Command + Shift + A, then enter the action reimport, then click on Reimport all Maven projects.

Answer from chepukha on Stack Overflow
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360003682939-How-do-you-remove-something-from-External-Libraries
How do you remove something from "External Libraries"? – IDEs Support (IntelliJ Platform) | JetBrains
I'm on a workstation that has Python27, but I'm trying to write in a virtualenv of 3.7. I can do this outside of PyCharm just fine by changing the PATH files, but IN PyCharm, I can't seem to exclude Python27 from the External Libraries.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360010618919-IntelliJ-Idea-not-removing-external-libraries
IntelliJ Idea not removing (external) libraries – IDEs Support (IntelliJ Platform) | JetBrains
April 21, 2021 - Actual: 4) run 'reload all maven projects' (maven toolwindow) > the dependency is not removed from 'external libraries' and in case of version change the new version is added as library => 2 versions of the same library 5) searching in the project folder it also/still appears in the .iml file under <orderEntry/> The removed versions keep coming back. To fix this I tried: - manually deleting those libraries in IntelliJ: this works until the next 'reload' which load all the versions you ever entered - manually deleting the .iml file: as soon as this file is recreated, the problem returns - manually deleting the .idea folder: solves the problem of the returning bad versions until you change a dependency version or remove the dependency.
Discussions

how to remove unused external libraries Intellij - Stack Overflow
I am working on a project with Intellij and for some reason we imported too many libraries. now I need to remove all the unnecessary libraries. is there a way to remove them without removing the ac... More on stackoverflow.com
🌐 stackoverflow.com
Cleaning the external libraries in Intellij - Stack Overflow
Everytime I am building the project its creating 2 libraries for commons-compress jar I have tried to clean and build , close and reopen intellij , but nothing fixes this. How can I clean up the library (not sure if it caches it somewhere) and rebuild , so that duplicate dependencies are removed? More on stackoverflow.com
🌐 stackoverflow.com
macos - In IntelliJ on OS X, how do you clear out all global setting info, licensing etc. (external to any project) - Stack Overflow
I am having some low level issues with IntelliJ on my mac, I really want to just zero everything out and start over. But even after removing the application and re-installing it, IntelliJ still More on stackoverflow.com
🌐 stackoverflow.com
How to exclude External Libraries in IntelliJ from .jar file - Stack Overflow
I am working on a Kotlin project where we periodically scan our .jar file for licensing issues. A lot of the issues getting picked up are not used directly in my project, but are in the External More on stackoverflow.com
🌐 stackoverflow.com
December 29, 2019
🌐
Eugene Petrenko
jonnyzzz.com › blog › 2013 › 05 › 13 › removing-unused-dependencies-in-idea
Removing Unused Dependencies in IDEA Projects – Eugene Petrenko
In this post I write about Jonnyzzz Dependencies plugin that helps one to remove unused dependencies between modules and libraries
🌐
Stack Overflow
stackoverflow.com › questions › 52356711 › how-to-remove-unused-external-libraries-intellij
how to remove unused external libraries Intellij - Stack Overflow
I am working on a project with Intellij and for some reason we imported too many libraries. now I need to remove all the unnecessary libraries. is there a way to remove them without removing the ac...
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 206878515-How-do-I-remove-unused-dependencies-from-the-project
How do I remove unused dependencies from the project? – IDEs Support (IntelliJ Platform) | JetBrains
April 12, 2013 - You can add dependencies, but can't delete, nor alter existing dependencies. Edited: My error. Re-importing does work, but from IntelliJ, one has to expand the External Library entries in question, then delete the associated jar file.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 207078295-How-to-clear-remove-all-global-libraries
How to clear / remove all global libraries – IDEs Support (IntelliJ Platform) | JetBrains
Hi,after 1 year plus of adding and removing RVMs and gemsets (Ruby), IntelliJ's Global Libraries cache is a total mess. I'm trying to find a way to clean it up without having to press the "Remove" ...
🌐
JetBrains
youtrack.jetbrains.com › issue › IJPL-12270 › Delete-all-unused-libraries
Delete all unused libraries : IJPL-12270
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong
Find elsewhere
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 205970144-How-to-exclude-external-libraries-from-indexing
How to exclude external libraries from indexing – IDEs Support (IntelliJ Platform) | JetBrains
November 12, 2016 - Libraries are not a problem but headers are. I add such directories in CMake using include_directories(SYSTEM ...). CLion places them under External Libraries in Project Tree. Unlike normal project directories those don't have option to be marked as library/excluded and I feel like they are indexed as regular project directories.
🌐
Nektony
nektony.com › home › how to › how to uninstall intellij from mac
How to remove IntelliJ from Mac (delete all leftover files)
November 21, 2025 - Like most JetBrains tools, IntelliJ keeps gigabytes of configuration data, logs, and caches in hidden Library folders. To remove them: In Finder’s menu, click Go → Go to Folder. ... Copy and press Return. ... Be careful with JetBrains in case you use their another product. . For better results, select Name Contains when typing ... Copy in the search box. Double check you search in the Library, not in this Mac.
🌐
Stack Overflow
stackoverflow.com › questions › 58232481 › cleaning-the-external-libraries-in-intellij
Cleaning the external libraries in Intellij - Stack Overflow
In my intellij sbt project I have added a dependency for com.crealytics libraryDependencies += "com.crealytics" %% "spark-excel" % "0.10.2". Everytime I am building the project its creating 2 libr...
🌐
JetBrains
youtrack.jetbrains.com › projects › IJPL › issues › IJPL-51421 › Hide-External-Libraries-in-Project-view
Hide External Libraries in Project view : IJPL-51421
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 18900891155346-Removing-library-from-externa-libraries-in-PyCharm
Removing library from externa libraries in PyCharm – IDEs Support (IntelliJ Platform) | JetBrains
Hi, I checked through posts, but still cannot find a way to do it. I want to remove the library rg_v2 from External Libraries (which I don't know how it even got there …). I have been looking for a...
🌐
Stack Overflow
stackoverflow.com › questions › 59515046 › how-to-exclude-external-libraries-in-intellij-from-jar-file
How to exclude External Libraries in IntelliJ from .jar file - Stack Overflow
December 29, 2019 - which seems to work for folders inside my project, but not within the External Libraries file. Am I able to exclude files or folders in the External Libraries area using sourceSets?
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 9876205485458-Hide-external-libraries-node-from-project-view
Hide external libraries node from project view? – IDEs Support (IntelliJ Platform) | JetBrains
February 1, 2023 - It's always annoying that the "external libraries" node in the project view will be expanded when a decompiled class is shown which results in a large amount of scrolling back to the interesting so...