How do i remove folder marked as library root in Intellij? Accidently marked as library root.
You have an icon in the top right of your intelliJ window, right next to the maginifying glass and click on it. It's the icon that looks like a pile of papers in the screenshot I took below.

In the next window, click on Modules in the left sidebar and in the right part of the window, click on the name of your project.
In my case, it's the name of my Spring Artefact project.

Now at the right, you have the context of your intelliJ project.
You can now select the folder you want to add or remove and click on the desired markup.
Hope it helps !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With