import ModerationAPI from '@moderation-api/sdk';
const client = new ModerationAPI({
secretKey: process.env['MODAPI_SECRET_KEY'], // This is the default and can be omitted
});
const word = await client.wordlist.words.remove('id', { words: ['string'] });
console.log(word.removedCount);
import ModerationAPI from '@moderation-api/sdk';
const client = new ModerationAPI({
secretKey: process.env['MODAPI_SECRET_KEY'], // This is the default and can be omitted
});
const word = await client.wordlist.words.remove('id', { words: ['string'] });
console.log(word.removedCount);