Deletes a data source from the configuration by its code. Returns the updated configuration JSON string with the data source removed.
The current configuration as a JSON string.
The data source code to delete.
The updated configuration JSON string.
import { deleteDataSource } from "@senzing/configtool";configJson = deleteDataSource(configJson, "OLD_SOURCE"); Copy
import { deleteDataSource } from "@senzing/configtool";configJson = deleteDataSource(configJson, "OLD_SOURCE");
basic-usage snippet
Deletes a data source from the configuration by its code. Returns the updated configuration JSON string with the data source removed.