deactivateMachine method

Future<void> deactivateMachine(
  1. String account,
  2. String machine
)

Deactivate a machine

Permanently deletes, or deactivates, a machine. It cannot be undone. This will immediately delete all processes associated with the machine.

Parameters:

  • String account (required): The identifier (UUID) or slug of your Keygen account.

  • String machine (required): The identifier (UUID) or URL-safe fingerprint of the machine to be deleted.

Implementation

Future<void> deactivateMachine(String account, String machine,) async {
  final response = await deactivateMachineWithHttpInfo(account, machine,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}