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.
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
.
model-config.json
, and the model .js
and .json
files inside server/models
(I do not have a /common/models/
).. but the deleted model is still appearing in the API explorer. Is there something else I need to do? –
Drawee © 2022 - 2024 — McMap. All rights reserved.
slc loopback:model
or delete an instance of model in your database? – Babbette