deleteUser method

Future<void> deleteUser(
  1. String account,
  2. String user
)

Delete a user

Permanently deletes a user. It cannot be undone. This action also immediately deletes any licenses and machines that the user is associated with.

Parameters:

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

  • String user (required): The identifier (UUID) or email of the user to be deleted.

Implementation

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