🪟 Pembersihan Khusus Windows

Di Windows, OpenClaw pake scheduled task buat manage Gateway service, perlu bersihkan via PowerShell.

Hapus scheduled task

Buka PowerShell sebagai admin, jalanin:

# Hapus OpenClaw Gateway scheduled task
schtasks /Delete /F /TN "OpenClaw Gateway"
💡 Kalau muncul warning task nggak ketemu, mungkin nama task-nya beda. Jalanin schtasks /Query | findstr /i "openclaw clawdbot gateway" buat cari nama aslinya.

Hapus startup script

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

Bersihkan state dan config

# Hapus config directory
Remove-Item -Recurse -Force "$env:USERPROFILE\.openclaw"

# Kalau punya custom Profile
Get-ChildItem "$env:USERPROFILE" -Filter ".openclaw-*" | Remove-Item -Recurse -Force

Uninstal CLI

# Instalasi npm
npm rm -g openclaw

# Instalasi pnpm
pnpm remove -g openclaw

Cek process sisa

# Cari process relate openclaw
Get-Process | Where-Object { $_.ProcessName -match "openclaw|gateway" }

# Force stop (kalau ada)
Get-Process | Where-Object { $_.ProcessName -match "openclaw" } | Stop-Process -Force