How do I delete Loopback Models which are generated with the CLI?
I deleted the .js and .json files in the model-folder and also the lines in model-config.json. (which is said here: Destroy a model in loopback.io )
I still get the "model not found" error.
So the models seem to be registered somewhere else and the following code is throwing the error. Do you have any idea where to delete the models completly?
node_modules\loopback\lib\registry.js:
**
* Look up a model class by name from all models created by
* `loopback.createModel()`. **Throw an error when no such model exists.**
*
* @param {String} modelOrName The model name or a `Model` constructor.
* @returns {Model} The model class
*
* @header loopback.getModel(modelName)
*/
Registry.prototype.getModel = function(modelName) {
var model = this.findModel(modelName);
if (model) return model;
throw new Error(g.f('Model not found: %s', modelName));
};
If its important: i am using a mongoDB and the mongo-connector.