Delete content

To delete existing content you need to first prepare the DeleteContentRequest payload.

var request = new DeleteContentRequest();
request.slug = '[Your Slug]';
request.apiKey = '[Your API Key]';
request.emailHash='[The hash of your email]';
request.id='[The id of content that you want to delete]';

Once the payload is ready, just call the deleteContent method.

var dialogueWiseService = new DialogueWiseService();
var response = await dialogueWiseService.deleteContent(request);

That’s it! You will now get a response of type DialogueWiseResponse which will indicate if your content was added successfully.

Please note, the changes will make the Dialogue as a draft version. You will need to deploy your Dialogue for it to be available. To understand further, please have a look at Deploying your Dialogue.