Created
February 6, 2026 10:35
-
-
Save nrnw/b2bda33ed5e39f504163f0a6872605eb to your computer and use it in GitHub Desktop.
VS Code Remote can leave stuff running on your server. This script cleans up leftover VS Code server processes and files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| echo "Stopping VS Code Remote Server processes..." | |
| # Kill only VS Code server-related node processes | |
| pkill -f ".vscode-server" || true | |
| pkill -f "vscode-server" || true | |
| echo "Removing VS Code server directories..." | |
| rm -rf ~/.vscode-server | |
| rm -rf ~/.vscode-server-insiders | |
| echo "VS Code Remote Server cleanup completed." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment