deleteLicense method

Future<void> deleteLicense(
  1. String account,
  2. String license
)

Delete a license

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

Parameters:

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

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

Implementation

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