1. .metadata folder is not under your project folder but workspace folder. take a look at your workspace folder. remove it and restart CW.
2. I wonder you have some C++ feature option enabled in compiler setting. for example, "if you use FSL ARM compiler, "Enable Exceptions" option in compiler setting will enable C++, if your license doesn't support C++, please disable this option
3. only professional license can support C++