OpenClaw Uninstall: How to Fully Remove from macOS, Windows, & Linux

Published on
April 24, 2026
Subscribe to our newsletter
Read about our privacy policy.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

OpenClaw is not the kind of tool you can remove by deleting a single app icon or uninstalling a single package. It usually sets up a background service, stores local data in multiple folders, and may also leave behind Docker resources, old-version folders, or saved connections to external services.

That is why many people think they removed OpenClaw, but then notice it still starts on login, continues to use disk space, or leaves old files behind. The main issue is simple. OpenClaw can run separately from the app or CLI, so a standard uninstall often removes only part of it.

A complete OpenClaw uninstall means removing the service, clearing local state and config files, deleting leftover folders from older names like Clawdbot and Moltbot, and checking whether any connected accounts still have access. If Docker is used, containers, images, and volumes also need cleanup.

This guide walks through the full removal process in a clear order. It covers what OpenClaw installs, what to back up before uninstalling, how to remove it on macOS, Windows, and Linux, how to clean Docker leftovers, how to revoke connected app access, and how to verify that nothing is still running after cleanup.

What OpenClaw Installs on Your System

OpenClaw usually installs multiple components, which is why incomplete removal is common. Most users notice the app or the CLI first, but the background service and local data folders often stay behind.

The first main part is the background gateway service. This is what keeps OpenClaw running even after a login or reboot. On macOS, it may run through a LaunchAgent. On Linux, it can run as a systemd user service. On Windows, it often runs through a Scheduled Task. If this service is not removed, OpenClaw can continue running in the background even after you think it is gone.

The second part is the CLI tool. This is the command-line version that many people install through npm, pnpm, bun, or another package method. Removing the CLI alone does not always stop the service or remove saved data, so it is only one part of the uninstall process.

The third part is the state and config data. OpenClaw stores logs, settings, session data, saved skills, and other local files in user folders. Depending on the version and setup, you may also find old folders from earlier names such as Clawdbot and Moltbot. These old folders can stay on the machine even if the current OpenClaw install is removed.

Some installs also include Docker resources. If you used Docker or Docker Compose, OpenClaw may leave behind containers, images, and volumes. These can use a lot of disk space and will not disappear unless you remove them directly.

In some setups, there may also be custom config paths, extra environment variables, or shell profile entries added. These are easy to miss and can create problems later if you try to reinstall OpenClaw on a clean system.

Before You Uninstall OpenClaw

Before removing OpenClaw, save anything you may want later. This matters most if you created custom skills, saved workflows, or want to keep old settings for a future reinstall. Once the state folders are deleted, that data is usually gone for good.

Start with the files that matter most to you. That can include exported skills, local session data, .env files, and your main config file. If you ran OpenClaw through Docker, your compose folder and environment file may also contain settings and keys you do not want to lose.

It also helps to decide what kind of uninstall you want. Some people only want to remove the running service. Others want a full cleanup that removes the CLI, local state, Docker resources, legacy folders, and old config paths. Making that choice early keeps the process cleaner.

One more thing is easy to miss. Removing OpenClaw from your computer does not automatically revoke access to external services. If you connected Google, Slack, Discord, GitHub, Microsoft, Notion, or similar tools, plan to revoke those app connections after uninstalling. Local cleanup removes files from your machine, but it does not invalidate access tokens that have already been granted.

If OpenClaw was installed under older names such as Clawdbot or Moltbot, keep that in mind before cleanup starts. You may have data spread across multiple folders, and backing up only the current OpenClaw directory may not be sufficient.

Quick OpenClaw Uninstall Option

If the OpenClaw CLI is still working, the fastest way to remove it is to use the built-in uninstall command. This is the easiest starting point for most users because it handles the main uninstall flow without forcing you to remove every part by hand.

The usual quick option is to run the full uninstall command with confirmation flags. This is helpful when you want a direct cleanup and do not want the process to stop for prompts. It is especially useful in scripts, remote sessions, or repeat cleanup work.

This quick uninstall usually handles the main service, local state, and core OpenClaw setup. It can remove the gateway registration, clear the main OpenClaw data folder, and remove the central app setup in one pass. For many normal installs, that is enough to get most of the job done.

Still, it is not always the whole cleanup. Older folders from Clawdbot or Moltbot can remain. Docker images and volumes can remain. Custom config paths can remain. Global package installations may also require separate removal, depending on how OpenClaw was originally installed.

That is why the quick uninstall is best seen as the first removal step, not always the final one. It is a strong shortcut, but you still need to verify that no old service, leftover directory, or external app connection remains after it finishes.

Also read openclaw Alternative

How to Uninstall OpenClaw on macOS

If you are using macOS, remove OpenClaw in a clear order. Stop the background service first. Then remove the app, local files, and package install. If you used Docker, clean that up at the end.

Step 1: Stop the OpenClaw background service

This is the most important step. If the background service is still active, OpenClaw can keep starting again even after you remove other files.

Run the service stop commands for the current and older labels, then kill any leftover process.

launchctl bootout gui/$UID/bot.molt.gateway 2>/dev/null

launchctl bootout gui/$UID/com.openclaw.gateway 2>/dev/null

launchctl bootout gui/$UID/com.clawdbot.gateway 2>/dev/null

pkill -f openclaw || true

pkill -f moltbot || true

pkill -f clawdbot || true

After that, confirm nothing is still loaded:

launchctl list | grep -i "claw\|molt"

This should return nothing.

Step 2: Use the built-in uninstall command if the CLI still works

If the openclaw command is still available, use the built-in uninstaller before doing manual cleanup.

openclaw uninstall --all --yes --non-interactive

This is the quickest path because it removes the main service and core local data in one step.

Step 3: Remove LaunchAgent files manually

If the CLI is broken, already removed, or the service still exists after uninstall, delete the LaunchAgent files by hand.

rm -f ~/Library/LaunchAgents/bot.molt.gateway.plist

rm -f ~/Library/LaunchAgents/com.openclaw.gateway.plist

rm -f ~/Library/LaunchAgents/com.clawdbot.gateway.plist

These files are what tell macOS to restart OpenClaw at login.

Step 4: Remove the OpenClaw app and local data folders

Now remove the app bundle and all local folders tied to current and older names.

rm -rf /Applications/OpenClaw.app

rm -rf ~/.openclaw

rm -rf ~/.clawdbot

rm -rf ~/.moltbot

rm -rf ~/.molthub

If you used a custom config location, remove that too. Check whether a custom path was set:

echo $OPENCLAW_CONFIG_PATH

If it returns a path, delete that folder as well.

Step 5: Remove the global CLI package

If you installed OpenClaw via a package manager, remove it separately.

For npm:

npm uninstall -g openclaw

If you used another package method, such as Homebrew, remove it there too.

Step 6: Remove Docker resources if you used Docker

If your macOS setup used Docker or Docker Compose, stop and remove those parts too.

docker compose down --volumes --remove-orphans

docker rmi openclaw/openclaw:latest 2>/dev/null || true

docker ps -a | grep -i claw

docker volume ls | grep -i claw

The last two checks should not show leftover OpenClaw containers or volumes.

Step 7: Verify that OpenClaw is fully gone

Run a few quick checks to make sure nothing is still active.

lsof -i :18789

which openclaw

ls ~/.openclaw 2>/dev/null

ls ~/.clawdbot 2>/dev/null

ls ~/.moltbot 2>/dev/null

launchctl list | grep -i "claw\|molt"

A clean uninstall should show no active process on port 18789, no CLI path, and no remaining service entries or local folders.

How to Uninstall OpenClaw on Windows

On Windows, the main thing to remove is the background task that starts OpenClaw at login. After that, uninstall the app or package, then clean up any leftover folders in your user profile and AppData.

Step 1: Stop the Scheduled Task and running processes

Open PowerShell as Administrator first. Then remove the Scheduled Task that starts the gateway.

schtasks /Delete /F /TN "OpenClaw Gateway"

schtasks /Delete /F /TN "ClawdBot Gateway" 2>$null

schtasks /Delete /F /TN "MoltBot Gateway" 2>$null

If you used a named profile, the task name may be slightly different. Check Task Scheduler if needed.

Now stop any OpenClaw process still running:

Get-Process -Name "openclaw*" -ErrorAction SilentlyContinue | Stop-Process -Force

Get-Process -Name "node" -ErrorAction SilentlyContinue | Where-Object { $_.Path -match "openclaw|clawdbot|moltbot" } | Stop-Process -Force

Step 2: Run the built-in uninstall command if the CLI still works

If the openclaw command is still available, use the built-in uninstaller first.

openclaw uninstall --all --yes

This removes the main service setup and core local data in the easiest way.

Step 3: Uninstall the app or package installation

If you installed OpenClaw through the Windows installer, remove it from Settings → Apps → Installed Apps.

If you installed it via a package manager, remove it using the same package manager.

For npm:

npm uninstall -g openclaw

For pnpm:

pnpm remove -g openclaw

For bun:

bun remove -g openclaw

Step 4: Delete local state, legacy folders, and AppData leftovers

Now remove the folders that keep OpenClaw data and old rebrand leftovers.

Remove-Item -Recurse -Force "$env:USERPROFILE\.openclaw" -ErrorAction SilentlyContinue

Remove-Item -Recurse -Force "$env:USERPROFILE\.clawdbot" -ErrorAction SilentlyContinue

Remove-Item -Recurse -Force "$env:USERPROFILE\.moltbot" -ErrorAction SilentlyContinue

Remove-Item -Recurse -Force "$env:USERPROFILE\.molthub" -ErrorAction SilentlyContinue

Remove-Item -Recurse -Force "$env:APPDATA\OpenClaw" -ErrorAction SilentlyContinue

Remove-Item -Recurse -Force "$env:LOCALAPPDATA\OpenClaw" -ErrorAction SilentlyContinue

If you had a custom config path, check that too:

echo $env:OPENCLAW_CONFIG_PATH

If that shows a path, delete that folder as well.

Step 5: Remove the leftover gateway script if it exists

Some Windows installs leave behind a gateway script inside the user directory. Remove it if it is still there.

Remove-Item -Force "$env:USERPROFILE\.openclaw\gateway.cmd" -ErrorAction SilentlyContinue

Step 6: Remove Docker resources if you used Docker

If your Windows setup used Docker or Docker Compose, remove those resources too.

docker compose down --volumes --remove-orphans

docker rmi openclaw/openclaw:latest 2>$null

docker ps -a | findstr /i claw

docker volume ls | findstr /i claw

The last two checks should not show any OpenClaw leftovers.

Step 7: Verify that OpenClaw is fully removed

Run these checks to make sure nothing is still installed or running.

where openclaw

schtasks /Query /TN "OpenClaw Gateway" 2>$null

Test-Path "$env:USERPROFILE\.openclaw"

Test-Path "$env:USERPROFILE\.clawdbot"

Test-Path "$env:USERPROFILE\.moltbot"

netstat -ano | findstr :18789

A clean uninstall should show no CLI path, no scheduled task, no leftover folders, and no process listening on port 18789.

How to Uninstall OpenClaw on Linux

On Linux, OpenClaw usually runs as a user service. That means deleting the CLI is not enough. You need to stop the service, remove its unit file, clear local data folders, and clean up any package or Docker install that was used.

Step 1: Stop the OpenClaw process

Start by stopping the running gateway. If the CLI still works, stop it cleanly first.

openclaw gateway stop

If the command is not available or the process is stuck, kill it manually.

pkill -f "openclaw gateway"

pkill -f openclaw || true

pkill -f clawdbot || true

pkill -f moltbot || true

Step 2: Disable and remove the systemd service

Most Linux installs use a systemd user service. Disable it, remove it, and reload systemd so it no longer attempts to start OpenClaw.

systemctl --user disable --now openclaw-gateway.service

rm -f ~/.config/systemd/user/openclaw-gateway.service

systemctl --user daemon-reload

If you installed an older version, remove the old service names too.

systemctl --user disable --now clawdbot-gateway.service 2>/dev/null

systemctl --user disable --now moltbot-gateway.service 2>/dev/null

rm -f ~/.config/systemd/user/clawdbot-gateway.service

rm -f ~/.config/systemd/user/moltbot-gateway.service

systemctl --user daemon-reload

If you used PM2 instead of systemd, remove that process too.

pm2 delete openclaw

pm2 save

Step 3: Run the built-in uninstall command if the CLI still works

If the CLI is still installed, use the built-in uninstall before manual cleanup.

openclaw uninstall --all --yes --non-interactive

This handles the main uninstall flow and removes the primary OpenClaw setup.

Step 4: Remove the CLI package

Now remove the command-line install from the package manager you used.

For npm:

npm uninstall -g openclaw

For pnpm:

pnpm remove -g openclaw

For bun:

bun remove -g openclaw

Step 5: Delete local state, config, and legacy folders

Remove the current OpenClaw directory and old folders from earlier names.

rm -rf ~/.openclaw

rm -rf ~/.clawdbot

rm -rf ~/.moltbot

rm -rf ~/.molthub

rm -rf ~/.config/openclaw

rm -rf ~/.local/share/openclaw

If you used a custom config path, check it first.

echo $OPENCLAW_CONFIG_PATH

If this returns a path, remove that directory too.

rm -rf "$OPENCLAW_CONFIG_PATH"

Step 6: Clean shell profile entries if you added them manually

Some Linux installs add OpenClaw-related lines to shell files such as .bashrc, .zshrc, or .bash_profile. Open those files and remove any PATH exports or config path lines related to OpenClaw.

Then reload your shell profile.

source ~/.bashrc

Or:

source ~/.zshrc

Step 7: Remove Docker resources if you used Docker

If you ran OpenClaw with Docker or Docker Compose, remove the containers, images, and volumes as well.

docker compose down --volumes --remove-orphans

docker rmi openclaw/openclaw:latest 2>/dev/null || true

docker ps -a | grep -i claw

docker images | grep -i claw

docker volume ls | grep -i claw

If you want a deeper cleanup, remove any remaining OpenClaw-named containers directly and prune unused volumes.

docker ps -a --filter "name=openclaw" --format "{{.ID}}" | xargs -r docker rm -f

docker volume prune -f

Step 8: Verify that OpenClaw is fully removed

Run a few checks to confirm nothing is left behind.

systemctl --user status openclaw-gateway.service

which openclaw

ls ~/.openclaw 2>/dev/null

ls ~/.clawdbot 2>/dev/null

ls ~/.moltbot 2>/dev/null

lsof -i :18789

pgrep -la openclaw || echo "Clean"

A full uninstall should show no active service, no CLI path, no remaining folders, and nothing listening on port 18789.

How to Remove Docker-Based OpenClaw Installs

If you installed OpenClaw with Docker, removing the app or CLI is not enough. Docker can still keep containers, images, and volumes on the system even after the main setup looks gone. That is why Docker-based installs often continue to use disk space until you clean them up directly.

The safest way is to stop the stack first, then remove containers, volumes, images, and any leftover OpenClaw resources. This matters even more on VPS setups, because old volumes can still hold state, logs, downloaded skills, and cached data after the containers are gone.

Step 1: Go to your OpenClaw Docker folder

Move into the folder where your docker-compose.yml file is stored.

cd ~/openclaw

If your Docker project is located elsewhere, use that location instead.

Step 2: Stop and remove containers

Shut down the stack first.

docker compose down

If you want a more thorough cleanup right away, remove volumes and orphaned containers as well.

docker compose down --volumes --remove-orphans

This is the better option when your goal is full removal.

Step 3: Remove the OpenClaw image

After the containers are gone, remove the Docker image.

docker rmi openclaw/openclaw:latest 2>/dev/null || true

If your setup used a different tag, remove that image name as well.

Step 4: Remove any leftover OpenClaw containers

Some users end up with old containers from earlier runs. Remove them if they are still listed.

docker ps -a | grep -i claw

If anything still appears, remove it:

docker ps -a --filter "name=openclaw" --format "{{.ID}}" | xargs -r docker rm -f

Step 5: Remove leftover Docker volumes

Volumes can hold a lot of old OpenClaw data. Check whether any still remain.

docker volume ls | grep -i claw

If OpenClaw-related volumes still show up, remove them. You can also clean unused volumes more broadly:

docker volume prune -f

Be careful with volume pruning if you use Docker for other projects, too.

Step 6: Verify Docker cleanup

Run a final check to make sure OpenClaw is no longer present in Docker.

docker ps -a | grep -i claw

docker images | grep -i claw

docker volume ls | grep -i claw

A clean uninstall should return nothing related to OpenClaw.

How to Remove Leftover OpenClaw Files

Even after the main uninstallation is complete, leftover OpenClaw files can remain on the system. These files are often the reason OpenClaw appears to come back after reinstall, keeps using storage, or leaves private data behind. That is why file cleanup matters just as much as removing the service.

The most common leftovers are the current OpenClaw folder, older folders from earlier names, skill caches, custom config paths, and files created by partial installs. A clean uninstall means checking all of them, not only the main folder you remember using.

Step 1: Remove the main OpenClaw folder

Start with the current folder used by OpenClaw.

On macOS and Linux:

rm -rf ~/.openclaw

On Windows PowerShell:

Remove-Item -Recurse -Force "$env:USERPROFILE\.openclaw" -ErrorAction SilentlyContinue

This folder usually stores local state, logs, saved sessions, settings, and other data.

Step 2: Remove legacy folders from older names

Older installs may still have folders from Clawdbot or Moltbot. These are easy to miss if you upgraded over time.

On macOS and Linux:

rm -rf ~/.clawdbot

rm -rf ~/.moltbot

rm -rf ~/.molthub

On Windows PowerShell:

Remove-Item -Recurse -Force "$env:USERPROFILE\.clawdbot" -ErrorAction SilentlyContinue

Remove-Item -Recurse -Force "$env:USERPROFILE\.moltbot" -ErrorAction SilentlyContinue

Remove-Item -Recurse -Force "$env:USERPROFILE\.molthub" -ErrorAction SilentlyContinue

These old folders can still contain settings, cached skills, logs, or old session data.

Step 3: Check AppData and local app folders on Windows

Windows installs may leave extra files in AppData locations even after the main uninstall finishes.

Remove-Item -Recurse -Force "$env:APPDATA\OpenClaw" -ErrorAction SilentlyContinue

Remove-Item -Recurse -Force "$env:LOCALAPPDATA\OpenClaw" -ErrorAction SilentlyContinue

This step is most important for users who installed OpenClaw via the Windows app installer.

Step 4: Check for a custom config path

Some users set a custom location with OPENCLAW_CONFIG_PATH. If that was used, the default folders may be gone, while the actual data still resides elsewhere.

On macOS and Linux:

echo $OPENCLAW_CONFIG_PATH

On Windows PowerShell:

echo $env:OPENCLAW_CONFIG_PATH

If a path appears, remove that folder too.

On macOS and Linux:

rm -rf "$OPENCLAW_CONFIG_PATH"

On Windows PowerShell:

Remove-Item -Recurse -Force "$env:OPENCLAW_CONFIG_PATH" -ErrorAction SilentlyContinue

Step 5: Remove stale PID or service leftovers

If OpenClaw crashed before uninstall or the uninstall was interrupted, stale files can remain and cause trouble on reinstall.

On macOS and Linux, remove leftover PID files if present:

rm -f ~/.openclaw/gateway.pid

You should also recheck the service files and startup entries if OpenClaw still comes back after a reboot.

Step 6: Verify that no leftover files remain

Run a last check on the common folders.

On macOS and Linux:

ls -la ~/.openclaw ~/.clawdbot ~/.moltbot ~/.molthub 2>&1

On Windows PowerShell:

Test-Path "$env:USERPROFILE\.openclaw"

Test-Path "$env:USERPROFILE\.clawdbot"

Test-Path "$env:USERPROFILE\.moltbot"

Test-Path "$env:USERPROFILE\.molthub"

Test-Path "$env:APPDATA\OpenClaw"

Test-Path "$env:LOCALAPPDATA\OpenClaw"

A clean result means the folders no longer exist.

How to Revoke OpenClaw OAuth Access

Removing OpenClaw from your device does not automatically remove its access to outside accounts. If you connected Google, Slack, Discord, GitHub, Microsoft, Notion, or other services, those permissions can stay active until you revoke them yourself.

This matters because the local uninstall only clears files and services on your machine. OAuth access is different. It runs on the service provider's side, so the connection can remain active even after OpenClaw is completely removed from your computer.

Step 1: Revoke Google access

If you connected Gmail, Google Calendar, or Google Drive, go to your Google account permissions page and remove OpenClaw from the list of connected apps.

Look for names such as:

  • OpenClaw
  • Clawdbot
  • Moltbot

If you used more than one Google account, repeat the check for each account.

Step 2: Revoke Slack access

If OpenClaw was connected to Slack, open your Slack app management or authorized apps area and remove the OpenClaw app from the workspace.

If you manage the workspace, also check whether the app is still installed at the workspace level.

Step 3: Revoke Discord access

Open Discord settings and go to the list of authorized apps. If OpenClaw or one of its earlier names appears there, remove that access.

This is important if OpenClaw had permission to read or post in your servers or direct messages.

Step 4: Revoke GitHub access

If you connected GitHub, open your GitHub application settings and check both:

  • Authorized OAuth Apps
  • GitHub Apps

Remove any entry linked to OpenClaw, Clawdbot, or Moltbot.

This matters even more if private repositories were connected.

Step 5: Revoke Microsoft access

If OpenClaw was linked to Outlook, OneDrive, Teams, or another Microsoft service, check your Microsoft app permissions page and remove access there.

Make sure you review the correct Microsoft account if you use more than one.

Step 6: Revoke Notion access

If OpenClaw was connected to Notion, open your Notion settings and remove the integration from your connected apps or integrations list.

This step helps make sure old workspace access is no longer active.

Also read OpenClaw Integrations

Step 7: Check other connected services too

If you connected any other service through OpenClaw, remove it there as well. This may include tools like:

  • Telegram
  • WhatsApp-related connectors
  • Git providers
  • Calendar tools
  • Automation tools

A simple rule works here. If OpenClaw had access to it, check that app’s connected apps or security page after uninstall.

Step 8: Rotate sensitive credentials if needed

If you are uninstalling OpenClaw for security reasons, do one more cleanup step. Rotate any API keys, tokens, or secrets that OpenClaw could access while it was active.

That can include:

  • LLM provider keys
  • GitHub tokens
  • Slack tokens
  • Google-related app credentials
  • .env secrets used in Docker or local installs

Why this step matters

This is one of the most important parts of a complete OpenClaw removal. If you skip it, OpenClaw may be removed from the computer, but the permissions it was granted can still remain active on external services.

A full uninstall is not only about deleting files. It is also about properly closing account access.

How to Verify OpenClaw Is Fully Removed

After uninstalling OpenClaw, do not assume it is gone just because the app or CLI is missing. A proper check should confirm that the process is not running, the background service is gone, the local folders are deleted, the CLI path is gone, and nothing is still listening on the default port.

This final check matters most before a reinstall. If old files or services linger, they can cause the same startup and config problems to recur.

Step 1: Check that no OpenClaw process is running

Start by checking whether any OpenClaw-related process is still active.

On macOS and Linux:

ps aux | grep -i openclaw | grep -v grep

ps aux | grep -i clawdbot | grep -v grep

ps aux | grep -i moltbot | grep -v grep

On Windows PowerShell:

Get-Process | Where-Object { $_.ProcessName -match "openclaw|clawdbot|moltbot" }

A clean system should return nothing related to OpenClaw.

Step 2: Check that port 18789 is no longer in use

OpenClaw commonly uses port 18789 for the gateway. If something is still listening there, the service may still be active.

On macOS and Linux:

lsof -i :18789

On Windows PowerShell:

netstat -ano | findstr :18789

A full uninstall should show no active listener on that port.

Step 3: Check that the CLI is no longer on your PATH

Now, verify that the openclaw command is gone.

On macOS and Linux:

which openclaw

On Windows:

where openclaw

A clean result means the CLI is no longer available.

Step 4: Check that the background service is removed

The service check depends on your platform.

On macOS:

launchctl list | grep -i "openclaw\|clawdbot\|moltbot"

On Linux:

systemctl --user list-units | grep -i "openclaw\|clawdbot\|moltbot"

On Windows PowerShell:

Get-ScheduledTask | Where-Object { $_.TaskName -match "openclaw|clawdbot|moltbot" }

These checks should return nothing related to OpenClaw.

Step 5: Check that local folders are gone

Confirm that the main folder and old legacy folders no longer exist.

On macOS and Linux:

ls -la ~/.openclaw ~/.clawdbot ~/.moltbot ~/.molthub 2>&1

On Windows PowerShell:

Test-Path "$env:USERPROFILE\.openclaw"

Test-Path "$env:USERPROFILE\.clawdbot"

Test-Path "$env:USERPROFILE\.moltbot"

Test-Path "$env:USERPROFILE\.molthub"

Test-Path "$env:APPDATA\OpenClaw"

Test-Path "$env:LOCALAPPDATA\OpenClaw"

A complete uninstall should show that these paths no longer exist.

Step 6: Check your custom config path if you used one

If you ever set OPENCLAW_CONFIG_PATH, make sure that location is gone too.

On macOS and Linux:

echo $OPENCLAW_CONFIG_PATH

On Windows PowerShell:

echo $env:OPENCLAW_CONFIG_PATH

If a path appears, verify that the directory was deleted and remove the environment variable from your shell or system settings.

Step 7: Check Docker leftovers if Docker was used

If you ran OpenClaw in Docker, make sure containers, images, and volumes are gone.

docker ps -a | grep -i claw

docker images | grep -i claw

docker volume ls | grep -i claw

On Windows PowerShell:

docker ps -a | findstr /i claw

docker images | findstr /i claw

docker volume ls | findstr /i claw

A clean Docker uninstall should show no OpenClaw-related results.

Step 8: Confirm there is nothing left to restart on login

This is the final check that matters most for people who saw OpenClaw return after reboot.

If all of the following are true, the uninstall is complete:

  • no running process
  • no active service or task
  • no CLI path
  • no OpenClaw folders
  • no port 18789 listener
  • no Docker leftovers
  • no custom config path left behind

That means OpenClaw is fully removed from the local system.

Common Problems During OpenClaw Uninstall

Even when the uninstall steps are correct, a few problems recur. Most of them happen because one part was removed while another part was left behind. OpenClaw often runs as a background service, stores data in multiple folders, and may also exist under older names, so partial cleanup is very common.

App removed, but OpenClaw still starts on login

This is one of the most common issues. It happens when the app or CLI is removed, but the startup service is not.

On macOS, that usually means a LaunchAgent is still there. On Linux, it is often a systemd user service. On Windows, it is usually a Scheduled Task. If OpenClaw keeps returning after reboot, the uninstall missed the startup entry.

CLI removed, but the gateway is still running

Some users uninstall the package and assume the service stopped too. It often does not. The gateway can keep running separately even after the openclaw command is gone.

That is why the service should always be stopped and checked directly before the rest of the cleanup. If the CLI is already missing, the service must be removed manually.

Built-in uninstall finished, but old files are still there

The built-in uninstall is useful, but it may not remove everything in every setup. Legacy folders from Clawdbot or Moltbot may stay on the system. Skill cache folders may also remain. The same applies to custom config paths if one was set earlier.

This is why manual verification matters after the built-in uninstall finishes.

Docker containers are gone, but disk space is still missing

This usually means Docker volumes or images are still on the machine. Stopping the stack removes the running containers, but it does not always remove the stored data.

If OpenClaw has used Docker for a while, the leftover image and volumes can take a noticeable amount of storage even after the main uninstall looks done.

Reinstall fails because old files were left behind

This happens when a new install starts over stale service files, old config data, broken PID locks, or leftover folders from older versions. The result is usually a startup failure, a configuration conflict, or a gateway that fails to connect properly.

A reinstall works much better after a clean removal than after a partial one.

Custom config path was forgotten

If It is also smart to check that the old local f was used, OpenClaw data may still live outside the normal folders. This is easy to miss because the default paths may appear clean, while the actual data resides elsewhere.

This can also cause confusion later, because users think OpenClaw has been removed, but the custom folder still exists with old settings and local data inside.

OAuth access was never revoked

A full local uninstall does not automatically remove external access. If OpenClaw was connected to Google, Slack, Discord, GitHub, Microsoft, Notion, or similar tools, those connections may still stay active until they are revoked manually.

This is one of the biggest gaps in many uninstall attempts. The software is gone, but account access can still remain.

Leftover files from older names were ignored

Users who installed OpenClaw during earlier rebrands often still have folders or service labels linked to Clawdbot or Moltbot. If only the current OpenClaw files are removed, the old leftovers may remain.

That is why uninstall checks should always include all three names, not only the newest one.

Reinstalling OpenClaw After Complete Removal

If you plan to reinstall OpenClaw later, a clean uninstall first makes a big difference. Most reinstall problems occur because old service files, stale config folders, legacy directories, or leftover Docker data were not fully removed.

Before reinstalling, make sure the old gateway is no longer running. Check that no background service is still set to start on login. Also, confirm that port 18789 is free, because an old process on that port can block the new install right away.

Also read Install OpenClaw Safely on Windows, macOS, & Linux

It is also smart to check that the old local folders are gone. That includes .openclaw, .clawdbot, .moltbot, .molthub, and any custom config path you may have used earlier. If those stay behind, the new install can inherit broken settings or the old state you did not mean to keep.

If Docker was part of the earlier setup, make sure the old containers, images, and volumes are gone before reinstalling. A fresh install on top of old Docker leftovers often leads to confusing startup or state issues.

Once the system is clean, reinstalling OpenClaw becomes much easier. You start with a fresh service setup, a clean config, and no leftover processes, trying to compete with the new install. That reduces the chance of startup errors, auth confusion, and config conflicts after reinstall.

FAQ

Is openclaw uninstall --all enough?

For many users, it removes the main service and core local data. But it is not always the full cleanup. Old folders from Clawdbot or Moltbot, Docker volumes, custom config paths, and outside app connections may still remain.

Why is OpenClaw still running after I deleted it?

This usually happens because the background service was not removed. Deleting the app or uninstalling the CLI does not always stop the LaunchAgent, systemd service, or Scheduled Task that starts OpenClaw again.

Do I need to revoke OAuth tokens after uninstalling OpenClaw?

Yes. This is one of the most important steps. Removing OpenClaw from your device does not cancel the access it was granted to Google, Slack, Discord, GitHub, Microsoft, Notion, or other connected services.

What are .clawdbot and .moltbot folders?

These are leftover folders from earlier OpenClaw names. If you installed the tool during those older versions, those folders can still exist and may still hold logs, settings, skills, or session data.

How do I know if OpenClaw is fully removed?

A full removal means:

  • no OpenClaw process is running
  • no startup service is still registered
  • no OpenClaw folder remains
  • no openclaw command is still on PATH
  • nothing is listening on port 18789
  • no Docker leftovers remain if Docker was used

Does removing the CLI also remove the service?

Not always. The CLI and the background service are separate parts. You can remove the command-line package and still have the service running in the background.

What if I used Docker?

You need extra cleanup. Remove containers, images, and volumes. If you only stop the containers, old OpenClaw data can still remain on disk.

What if I used a custom config path?

Then you need to remove that folder too. The default uninstall steps usually target the standard OpenClaw folders, not every custom path a user may have set.

Can I reinstall OpenClaw after uninstalling it?

Yes. In fact, reinstalling usually works better after a full cleanup. A clean system helps avoid port conflicts, stale service files, and broken config carryover from the older install.

Why does OpenClaw keep coming back after reboot?

That is almost always a startup entry problem. The service registration was likely left behind, so the system keeps launching OpenClaw at login even though the main app or CLI was removed.