Skip to main content

Platform Uninstallation Guide

This document will guide you through the complete uninstallation of the WeDa private deployment platform, including stopping services, removing containers, and cleaning up data.

Pre-uninstallation Preparation

Important Reminders
  • Data Backup: Please ensure important data is backed up before uninstallation, as deleted data cannot be recovered
  • Installation Directory: Default installation directory is /data/tencent/weda
  • Operation Permissions: Root privileges are required to perform uninstallation operations

Uninstallation Steps

Step 1: Stop Services

First, stop all running service containers:

cd /data/tencent/weda
docker-compose --profile all stop

Stop Services

Step 2: Remove Containers

Remove all related Docker containers:

docker-compose --profile all rm

Remove Containers

Step 3: Clean Data Directories

Data Cleanup Warning

Executing the following commands will permanently delete all platform data, including:

  • Configuration files (configs)
  • Log files (logs)
  • Database and storage data (storage)

This operation is irreversible, please proceed with caution!

# Remove configuration files directory
rm -rf configs

# Remove log files directory
rm -rf logs

# Remove data storage directory
rm -rf storage

Clean Data

Uninstallation Verification

After completing the above steps, you can verify the successful uninstallation through the following methods:

  1. Check Container Status

    docker ps -a | grep weda

    No related containers should be displayed

  2. Check Directory Cleanup

    ls -la /data/tencent/weda/

    Related directories should have been deleted

  3. Check Port Usage

    netstat -tlnp | grep :80

    Port 80 should no longer be occupied

Optional Operations

Clean Docker Images

If you need to completely clean related Docker images to free up disk space:

# View WeDa-related images
docker images | grep weda

# Remove unnecessary images (please choose based on actual situation)
docker rmi <Image ID>

Clean Installation Directory

If you need to completely remove the installation directory:

# Caution: Remove the entire installation directory
rm -rf /data/tencent/weda

Summary

Through the above steps, you have successfully completed the uninstallation of the WeDa private deployment platform:

  1. ✅ Stopped all running services
  2. ✅ Removed related Docker containers
  3. ✅ Cleaned up all platform data and configurations
  4. ✅ Verified uninstallation results

If you need to redeploy in the future, please refer to the Deployment Process Documentation for a fresh installation.