JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const model = await client.models.delete('model_id');
console.log(model);curl https://api.morphik.ai/models/$MODEL_ID \
-X DELETE \
-H "Authorization: Bearer $MORPHIK_API_KEY"{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}models
Delete Model
Delete a custom model.
DELETE
/
models
/
{model_id}
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const model = await client.models.delete('model_id');
console.log(model);curl https://api.morphik.ai/models/$MODEL_ID \
-X DELETE \
-H "Authorization: Bearer $MORPHIK_API_KEY"{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?

