deleteImport method

Future<DeleteImportResponse> deleteImport({
  1. required String importId,
})

Removes a previous import and the associated file stored in an S3 bucket.

May throw InternalServerException. May throw PreconditionFailedException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter importId : The unique identifier of the import to delete.

Implementation

Future<DeleteImportResponse> deleteImport({
  required String importId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/imports/${Uri.encodeComponent(importId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteImportResponse.fromJson(response);
}