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