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 dialogueWiseClient = new DialogueWiseClient();
var response = await dialogueWiseClient.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.