Skip to main content

SmartStation.DeleteSmartStationAsync

Description

Deletes an existing Smart Station with a specified station Id from the connected Control Room.

Signature [C#]

Task DeleteSmartStationAsync(int stationId)

Properties

Input

PropertyDescription
stationIdSpecify the station Id to delete the smartstation.

Remarks

Use DeleteSmartStationAsync API to delete the SmartStation with specified station Id from the connected Control Room.

Example

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

int stationId = 1;

Task.Run(() => context.Machines.DeleteSmartStationAsync(stationId)).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;
}