import osfrom unstructured import UnstructuredClientclient = UnstructuredClient( username=os.environ.get("UNSTRUCTURED_USERNAME"), # This is the default and can be omitted password=os.environ.get("UNSTRUCTURED_PASSWORD"), # This is the default and can be omitted)response = client.data_source.delete_batch( connector_names=["string"],)print(response.deleted)
Delete multiple data connectors in a single call. Useful for removing all connectors in a multi-site group.
POST
/
data_connector
/
delete_batch
Python
import osfrom unstructured import UnstructuredClientclient = UnstructuredClient( username=os.environ.get("UNSTRUCTURED_USERNAME"), # This is the default and can be omitted password=os.environ.get("UNSTRUCTURED_PASSWORD"), # This is the default and can be omitted)response = client.data_source.delete_batch( connector_names=["string"],)print(response.deleted)