import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const genericDeleteResponse = await client.models.delete('model_id');
console.log(genericDeleteResponse.count);
{
"success": true,
"count": 123
}
Deletes a model
This API can be used to delete a model by ID. To use this API, pass in the id
that was returned from your Create Model API call as a path parameter.
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const genericDeleteResponse = await client.models.delete('model_id');
console.log(genericDeleteResponse.count);
{
"success": true,
"count": 123
}
Successful Response
The response is of type object
.