deleteIngestedV1IngestDocIdDeleteWithHttpInfo method

Future<Response> deleteIngestedV1IngestDocIdDeleteWithHttpInfo(
  1. String docId
)

Delete Ingested

Delete the specified ingested Document. The doc_id can be obtained from the GET /ingest/list endpoint. The document will be effectively deleted from your storage context.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> deleteIngestedV1IngestDocIdDeleteWithHttpInfo(String docId,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/ingest/{doc_id}'
    .replaceAll('{doc_id}', docId);

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