Skip to main content

EmailTrigger.DeleteEmailTriggerAsync

Description

The API deletes the specified Email Trigger from the connected Control Room.

Signature [C#]

Task DeleteEmailTriggerAsync(int Id)

Properties

Input

PropertyDescription
IdId of the email trigger to be deleted.

Remarks

Use DeleteEmailTriggerAsync API to delete Email Trigger inside the connected Control Room.

Example

C#
public void DeleteEmailTrigger()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");
int Id = 1;

Task.Run(() => context.EmailTriggers.DeleteEmailTriggerAsync(Id)).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;
}