Additional optional use cases
If you must delete a connector and related information before the process of waiting for the background jobs to run, you can run a deletion
script using the instructions that follow.
m
Gather the ID of the connector you wish to delete.
Navigate to the base folder of your Danswer repository.
Run python3 backend/scripts/force_delete_connector_by_id.py <CONNECTOR_ID>
Follow these steps to manually and immediately delete a connector and its contents within a container:
Ensure your Docker containers are running- you can refer to the quickstart guide:
Identify the <CONTAINER_ID>
of your API server container. It should contain the string danswer-api
. You can list all running containers with:
Gather the ID <CONNECTOR_ID>
of the connector you wish to delete.
Run the deletion script inside the Docker container:
Replace <CONTAINER_ID>
with your actual API container ID, and <CONNECTOR_ID>
with the ID of the connector you want to delete.
For example:
The script will execute inside the container, accessing the necessary resources and performing the deletion.
If you encounter permission issues, you may need to run the docker-compose command with sudo:
Ensure that your user has the necessary permissions to execute docker-compose commands.
If the script is not found, verify the path to the script within your Docker container.