How can I delete a model in strongloop's loopback.io?
I have seen somewhere command called persistedModel.destroy()
but when I exectute slc persistedModel.destroy()
I get command not found error.
Delete /common/models/your-model.js
and /common/models/your-model.json
, then delete the lines referencing your model in /server/model-config.json
.