deleteProduct method

Future<void> deleteProduct(
  1. String account,
  2. String product
)

Delete a product

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

Parameters:

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

  • String product (required): The identifier (UUID) of the product to be deleted.

Implementation

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