deletePolicy method

Future<void> deletePolicy(
  1. String account,
  2. String policy
)

Delete a policy

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

Parameters:

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

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

Implementation

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