how do I clean up my server for a fresh install of...
# replication-ask-ai
k
how do I clean up my server for a fresh install of airbyte on docker
k
To clean up your server for a fresh install of Airbyte on Docker, you can follow these steps to remove existing data and configurations. This will ensure that you start with a clean slate. ### Steps to Clean Up Your Server 1. Turn off Airbyte completely:
Copy code
bash    docker-compose down -v
2. Remove the data on disk:
Copy code
bash    rm -rf /tmp/dev_root    rm -rf /tmp/airbyte_local
3. Remove Docker volumes associated with Airbyte:
Copy code
bash    docker volume rm $(docker volume ls -q | grep airbyte)
4. Optionally, prune all Docker volumes and system: This step is useful if you've been modifying image tags while developing.
Copy code
bash    docker system prune -a    docker volume prune
5. Rebuild the project (if you are developing locally):
Copy code
bash    SUB_BUILD=PLATFORM ./gradlew clean build    VERSION=dev docker compose up -V
### Additional Considerations - If you are working on Python connectors, you may also need to reset the
virtualenv
and re-install the connector's dependencies:
Copy code
bash    # Assuming you have a virtualenv loaded into your shell    deactivate     # From the connector's directory    # remove the venv directory entirely    rm -rf .venv     # make and activate a new venv    python3 -m venv .venv    source .venv/bin/activate    pip install -e ".[dev]"
### References - [Resetting the Airbyte Developer Environment](https://docs.airbyte.com/contributing-to-airbyte/resources/developing-locally#resetting-the-airbyte-developer-environment) - [Upgrading on Docker](https://docs.airbyte.com/operator-guides/upgrading-airbyte#upgrading-on-docker) - [Creating a Python Destination (DuckDB) - Resetting Airbyte](https://airbyte.com/tutorials/creating-duckdb-destination-with-python) By following these steps, you should be able to clean up your server and prepare it for a fresh install of Airbyte on Docker.