Questions : How to destroy Model in loopback.io?
Answer : We can delete loopback model by using following command
But After executing this, you might get the following error
slc persistedModel.destroy() : command not found error.
If you get the error then follow these steps
Step 1 :
Step 2 :
Step 3 :
Delete the lines referencing your model in /server/model-config.json.
Also, delete references of relation in other models if relation created.
Leave a Reply