Documentation

Removes and wipes a device from a Circle.

Arguments

The Circle ID and the ID of the device that you want removed from the Circle. 

Returns

Whether the action was successful or not.

API Definition

public async Task<RevokeDeviceReply> RevokeDevice(RevokeDeviceRequest request)

C# Structures

public class RevokeDeviceRequest

{

  public string CircleId;

  public string DeviceId;

}

public class RevokeDeviceReply

{

  public ReturnStatus Status;

}

C# Example code:

public void RevokeDevice(string circleId, string DeviceId)

{

  RevokeDeviceRequest request = new RevokeDeviceRequest() { CircleId = circleId, DeviceId = DeviceId };

  RevokeDeviceReply reply = _circle.RevokeDevice(request);

  Console.WriteLine(reply.Status.Message);

}