Senzing Node.js SDK
    Preparing search index...
    • Deletes a data source from the configuration by its code. Returns the updated configuration JSON string with the data source removed.

      Parameters

      • configJson: string

        The current configuration as a JSON string.

      • code: string

        The data source code to delete.

      Returns string

      The updated configuration JSON string.

      import { deleteDataSource } from "@senzing/configtool";

      configJson = deleteDataSource(configJson, "OLD_SOURCE");