import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const artifact = await client.knowledgeBases.artifacts.delete('knowledge_base_id', 'artifact_id');
console.log(artifact.artifact_id);{
"deleted": true,
"artifact_id": "<string>"
}import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const artifact = await client.knowledgeBases.artifacts.delete('knowledge_base_id', 'artifact_id');
console.log(artifact.artifact_id);{
"deleted": true,
"artifact_id": "<string>"
}