if (NbGradleConfiguration.DEFAULT_CONFIG.equals(config)) {
LOGGER.warning("Cannot remove the default configuration");
return;
}
NbGradleProject.PROJECT_PROCESSOR.execute(Cancellation.UNCANCELABLE_TOKEN, new CancelableTask() {
@Override
public void execute(CancellationToken cancelToken) {
removeFromConfig(config);
File profileFile = SettingsFiles.getFilesForProfile(rootDirectory, config.getProfileDef())[0];
if (profileFile.isFile()) {