Clear Database - ngageoint/voxel-globe GitHub Wiki

To clear all of VoxelGlobe, you need to

Clearing the database

In Linux, the database is stored in {voxel_globe_repo}/data/postgresql. In Mac and Windows, it is stored in a docker volume, by default named vip-postgresql. This folder should not just be deleted, postgresql is too delicate for this. There is a simple step to clear the database and return it to a functional state.

NOTE: This is not a recoverable process

  • Run ./just initialize-database
  • When prompted "Are you sure?" reply with a capital Y, and the database will be reset.

Deleting all local storage

In Linux, all local files are stored in {voxel_globe_repo}/data/storage or {voxel_globe_repo}/data/images. In Mac and Windows, they are stored in docker volumes, by default named vip-storage and vip-images. If you wish to purge all local content, you can:

NOTE: This is not a recoverable process

  • Linux - Just delete the images and storage directory.

  • Mac/Windows - Just remove the docker volume.

      ./just stop clean
      docker volume rm vip_images
      docker volume rm vip_storage
    

Deleting all other docker volumes

There should be no reason to do this on a regular basis, but there are a few other docker volumes that remain to store and cache small pieces of information to make VoxelGlobe run smoother. It is possible to purge these too

NOTE: This is not a recoverable process

    ./just stop clean
    docker volume rm vip_matplotlib
    docker volume rm vip_rabbitmq
    docker volume rm vip_redis
    docker volume rm vip_ssl
    docker volume rm vip_vxl