killProcessWithHttpInfo method

Future<Response> killProcessWithHttpInfo(
  1. String account,
  2. String process
)

Kill a process

Permanently kills (deletes) a process. It cannot be undone.

Note: This method returns the HTTP Response.

Parameters:

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

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

Implementation

Future<Response> killProcessWithHttpInfo(String account, String process,) async {
  // ignore: prefer_const_declarations
  final path = r'/accounts/{account}/processes/{process}'
    .replaceAll('{account}', account)
    .replaceAll('{process}', process);

  // 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,
  );
}