Sometimes, You are working on a Java project in Netbeans, which got slowed due to some reasons.

First thing, you have to clean the cache in Netbeans.

This tutorial explains multiple ways to clear the cache in Netbeans.

How to delete cache in Netbeans IDE?

First, Find out the cache directory in your machine.

  • In NetBeans, Go to Help Menu -> Select About option
  • It shows the About window, which contains the following properties
Product Version: Apache NetBeans IDE 14
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2
Java:; Java HotSpot(TM) 64-Bit Server VM
Runtime: Java(TM) SE Runtime Environment
System: Windows 10 version 10.0 running on amd64; UTF-8; en_IN (nb)
User directory: C:\Users\Kiran\AppData\Roaming\NetBeans\14

The user directory tells about the cache directory of NetBeans working temporarily as a cache. Here 14 is the NetBeans version

My machine is Windows, It gives Windows path.

  • Removed this directory to delete the working cache.

  • Restart the Netbeans server to take effect

In Linux, the cache folder is located in the folder


Please run the below command in Linux and Unix.

rm -fr /.cache/netbeans/${version}/index/

In the case of Mac OS, the cache file is located at ~/Library/Caches/NetBeans/${version}/

You can delete the version folder to remove the cache.

Finally, Restart the Netbeans server, It starts the server and rebuilds the cache index.