deleteEntitlement method

Future<void> deleteEntitlement(
  1. String account,
  2. String entitlement
)

Delete an entitlement

Permanently deletes an entitlement. The entitlement will immediately be removed from all licenses and policies. It cannot be undone.

Parameters:

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

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

Implementation

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