Destroy a model in loopback.io
Delete /common/models/your-model.js and /common/models/your-model.json, then delete the lines referencing your model in /server/model-config.json.
Delete /common/models/your-model.js and /common/models/your-model.json, then delete the lines referencing your model in /server/model-config.json.
Here’s the full solution for storing meta data with files in loopback. You need a container model common/models/container.json { “name”: “container”, “base”: “Model”, “idInjection”: true, “options”: { “validateUpsert”: true }, “properties”: {}, “validations”: [], “relations”: {}, “acls”: [], “methods”: [] } Create the data source for your container in server/datasources.json. For example: … “storage”: { … Read more