Bots.DeleteBotAsync
Description
Deletes an existing Assistant Buddy from the connected Control Room
Signature [C#]
Task DeleteBotAsync(int botId)
Properties
Input
Property | Description |
---|---|
botId | The Assistant Buddy Id to be deleted |
Remarks
Use DeleteBotAsync API to delete an Assistant Buddy from the connected Control Room.
Example
public void DeleteAssistantBuddy()
{
IControlRoomContext context = LoginControlRoom();
int botId = 10;
Task.Run(() => context.Bots.DeleteBotAsync(int botId)).Wait();
}
C#
public IControlRoomContext LoginControlRoom()
{
IControlRoomContext context;
string connectionString;
connectionString = "ServerUrl=https://demo.onnitellibuddies.com;UserName=demoadmin;Password=password";
context = new ControlRoomContext(connectionString);
context.Open();
return context;
}