Tokaido manages Docker images, networks, volumes, and containers on your behalf.
The safest way to delete a Tokaido project is using
tok destroy . If you delete these Docker elements manually, then Tokaido own state can fall out-of-sync with your running Docker environment.
In cases where this happens, the recommended course of action is to clean up Docker environment and remove the projects from the Tokaido Global config file manually.
InfoThese actions will not delete your Tokaido-enabled databases or require you to redownload Docker images
docker stop $(docker ps -aq --filter "label=io.tokaido.managed") docker rm $(docker ps -aq --filter "label=io.tokaido.managed")
WarningThis deletes _all_ unused networks, not just those assigned to Tokaido environments
docker network prune
Remove unwanted projects by deleting their "name" and "path" entries from the global config.
projects: - name: my-project path: /Users/mrichardson/code/my-project - name: missing-site path: /Users/mrichardson/code/missing-site - name: new-site path: /Users/mrichardson/code/new-site
To remove the 'missing-site' project from Tokaido's global config, update the global.yml file to match the following:
projects: - name: my-project path: /Users/mrichardson/code/my-project - name: new-site path: /Users/mrichardson/code/new-site