🗑 Removal

Uninstall Grafana from Windows — Complete Removal Guide

Fully remove Grafana from Windows 10, 11 or Server. Covers uninstalling via Apps & Features, silent uninstall, stopping and removing the Windows Service, cleaning up leftover files and registry entries.

Before you uninstall — back up your data

The uninstaller removes Grafana but may leave the data directory intact depending on the installer version. To be safe, back up dashboards and configuration before proceeding:

# Back up Grafana data directory before uninstalling $dest = "C:\Backups\Grafana-final-backup-$(Get-Date -Format yyyyMMdd)" Copy-Item "C:\Program Files\GrafanaLabs\grafana\data" $dest -Recurse Copy-Item "C:\Program Files\GrafanaLabs\grafana\conf\grafana.ini" $dest Write-Host "Backup saved to $dest"
Tip: Export individual dashboards as JSON from Grafana UI before uninstalling: Dashboard → Share → Export → Save to file.

Method 1 — Uninstall via Windows Apps & Features (GUI)

1

Stop the Grafana service

Open services.msc, find Grafana, right-click → Stop. Or run: Stop-Service -Name "Grafana"

2

Open Apps & Features

Press Win + I → Apps → Apps & features. Search for Grafana.

3

Uninstall

Click GrafanaUninstall → confirm. The uninstaller removes the program files and the Windows Service registration.

4

Clean up remaining files

The MSI uninstaller typically leaves the data directory. Remove it manually if you want a clean slate (see below).

Method 2 — Silent uninstall via PowerShell

# Stop the service first Stop-Service -Name "Grafana" -Force -ErrorAction SilentlyContinue # Find the Grafana MSI product code $grafana = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -like "*Grafana*" } if ($grafana) { Write-Host "Found: $($grafana.Name) $($grafana.Version)" # Silent uninstall using product code $exitCode = (Start-Process msiexec.exe ` -ArgumentList "/x $($grafana.IdentifyingNumber) /quiet /norestart" ` -Wait -PassThru).ExitCode Write-Host "Uninstall exit code: $exitCode" } else { Write-Host "Grafana MSI not found in installed programs" }

Remove leftover files and directories

After uninstalling, check and remove any remaining Grafana files:

# Remove Grafana installation directory (if still present) $installDir = "C:\Program Files\GrafanaLabs" if (Test-Path $installDir) { Remove-Item $installDir -Recurse -Force Write-Host "Removed $installDir" } # Remove Grafana data directory (contains your dashboards!) # Only do this if you have a backup $dataDir = "C:\ProgramData\Grafana" if (Test-Path $dataDir) { Remove-Item $dataDir -Recurse -Force } # Remove Grafana AppData for current user $appData = "$env:APPDATA\Grafana" if (Test-Path $appData) { Remove-Item $appData -Recurse -Force }

Remove the Windows Service (if still registered)

If the service entry persists after uninstalling:

# Check if service still exists Get-Service -Name "Grafana" -ErrorAction SilentlyContinue # Remove the service sc.exe delete "Grafana" # Or using PowerShell 6+ (Get-Service -Name "Grafana").Delete()

Remove Windows Firewall rules

# List Grafana firewall rules Get-NetFirewallRule | Where-Object { $_.DisplayName -like "*Grafana*" } # Remove all Grafana firewall rules Get-NetFirewallRule | Where-Object { $_.DisplayName -like "*Grafana*" } | Remove-NetFirewallRule

Verify complete removal

# Confirm service is gone Get-Service -Name "Grafana" -ErrorAction SilentlyContinue # Should return nothing # Confirm port 3000 is free netstat -ano | findstr ":3000" # Should return nothing # Confirm install directory is removed Test-Path "C:\Program Files\GrafanaLabs" # Should return False

Reinstalling Grafana?

Download the latest MSI and follow the installation guide to get Grafana running again.

Download MSI → Install as Service