How to clean project cache in Intellij idea?(like eclipse’s clean)

Sometimes,the ide makes some error because of the cache.In eclipse,we can use clean to solve the problem.But how can I do it in intellij?

Android dev in Intellij,How to clean PNG cache only?

Is there anyway to clean cache(like png),as we do in eclipse –>clean project. I knew it can do file–>invalidate caches,but in this way, the local history will be cleaned also. I just clean PNG

Android clean device cache

Please let me know how to clean device cache programmaticlly? Thanks

How to try cache invalidation and cache clean in ARM?

I want to try cache clean and cache invalidate in Raspberry Pi Can someone guide on this. I just want to do some DMA transfer and try some stuff. Also if some one can give me a code snippet on how to

clean project Mechanism Android

what is advantage or magic or mechanisum behind clean project? some time we implement code which are not effect in final output and we are clean (: from: project Explorer >> clean 🙂 it and as p

How to clean Magento cache?

I need a simple script that will refresh every single element of the Magento cache. I’m running and can’t upgrade.

How to keep your distributed cache clean?

In a N-Tier architecture, what would be the best patterns to use so that you can keep your cache clean? I know it’s easy to just set an absolute/sliding timeout, but is there a better mechanism availa

how run junit + maven with options in intellij 10.5.1 (clean install -Dtest=ClassName)

How can i run mvn with options in intellij 10.5.1 ? I mean, is it possible or create additional command to run: clean install -Dtest=myClassName //? Can i add this in the tab where i see: clean insta

How to launch ant clean target when executing eclipse Project clean

In order to simplify Eclipse use for our newbie users, we want to add this features to Eclipse : 1) If the user click on Project —->Clean… , eclipse launches also the ant clean target which is

How to do an android mm clean?

I’m building custom module in Android source with mm command, When I run mm clean, It seams the clean the whole project, How can I do like : mm clean to clean the current module?

Function of Project > Clean in Eclipse

What does Eclipse’s Project → Clean… tool actually do?


Try this:

Go into Settings (File > Settings or ctrl+alt+S). Under Project Settings, select the “Compiler” node. On the left, uncheck “Clear output directory on rebuild”.

Note that this is a per project setting. If desired, change it in the project template settigs (Settings > Other Settings > Template Settings).

Click File -> Invalidate caches

As seen here

How to clean project cache in Intellij idea?(like eclipse's clean)

You can delete caches manually in home/.IntelliJIdeaXX/system. Read this for more info on cache locations.

Maybe not THE answer, but it’s definitely AN answer.

If nothing else is working for you, go the nuclear option: Close IDEA and delete the “…/.IntelliJIdea/system” directory using your local file system tools.

The .IntelliJIdea directory is usually found in your home directory. Your IDE configuration is in the “…/.IntelliJIdea/config” directory, so it should be fine.

Obviously, this is not the “IDEA” way to do it and would be completely unsupported by JetBrains. Also – I don’t use Android Studio so I dunno if this will cause problems, but there you go.

It’s worked for me before when I’ve had problems getting IDEA to start and nothing else works to get me going. Maybe back up your entire .IntelliJIdea directory if you have a morbid fear of losing all your work >.<

IDEA 13 is out now, so it’s worth noting that Jetbrains have now added an easy way to do this: “File/Invalidate Caches”.


(other answer remains the way to do it with IDEA 12)

Go to the command line and type:

$ mvn clean

This clears the target subdirectory, fast and easy.

(There might also be a way to do this inside the IDE, but I’ve not seen it.)