Skip to main content
Version: IB7.0

SmartBuddies.DeleteSmartBuddyAsync

Description​

Deletes an existing Smart Buddy with specified Smart Buddy Id from the connected Control Room.

Signature [C#]​

Task DeleteSmartBuddyAsync(int buddyId)

Properties​

Input​

PropertyDescription
buddyIdSpecify the Id to delete a Smart Buddy.

Remarks​

Use DeleteSmartBuddyAsync API to delete Smart Buddy with specified Smart Buddy Id from the connected Control Room.

Example​

C#
public void DeleteSmartBuddy()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");

int buddyId = 10;

Task.Run(() => context.SmartBuddies.DeleteSmartBuddyAsync(buddyId)).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;
}