deleteKnowledgeConnectorsByProviderWithHttpInfo method

Future<Response> deleteKnowledgeConnectorsByProviderWithHttpInfo(
  1. String provider
)

Revokes a connection: it tombstones the stored credential so a later sync cannot reuse it, purges this provider's points from the org's vector namespace, and marks the connector disconnected.

Revokes a connection: it tombstones the stored credential so a later sync cannot reuse it, purges this provider's points from the org's vector namespace, and marks the connector disconnected. The documents already ingested stay in the org's store — they are the org's own data — but stop being retrievable by search; a caller deletes them through the document surface.

Note: This method returns the HTTP Response.

Parameters:

  • String provider (required): Provider is the connector to act on: github, slack, google or notion.

Implementation

Future<Response> deleteKnowledgeConnectorsByProviderWithHttpInfo(String provider,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/knowledge/connectors/{provider}'
    .replaceAll('{provider}', provider);

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