Process.DeleteProcessAsync
Description
The API deletes an existing Process from the connected Control Room.
Signature [C#]
Task DeleteProcessAsync(int processId)
Properties
Input
Property | Description |
---|---|
processId | Specify the process Id to delete the process. |
Remarks
Use DeleteProcessAsync API to delete the process from the connected Control Room.
Example
C#
public void DeleteProcess()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");
int processId = 1;
Task.Run(() => context.Processes.DeleteProcessAsync(processId)).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;
}