Skip to main content

EnterpriseVariable.DeleteVariableAsync

Description

Deletes the specified Enterprise Variable from the connected Control Room.

Signature [C#]

Task DeleteVariableAsync(int Id)

Properties

Input

PropertyDescription
IdThe Id of the Enterprise Variable to be deleted.

Remarks

Use DeleteVariableAsync API to delete enterprise variables with the specified Id from the connected Control Room.

Example

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

int Id = 1;

Task.Run(() => context.EnterpriseVariables.DeleteVariableAsync(eVarId)).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;
}