deleteProductWithHttpInfo method

Future<Response> deleteProductWithHttpInfo(
  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.

Note: This method returns the HTTP Response.

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<Response> deleteProductWithHttpInfo(String account, String product,) async {
  // ignore: prefer_const_declarations
  final path = r'/accounts/{account}/products/{product}'
    .replaceAll('{account}', account)
    .replaceAll('{product}', product);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}