Discord ships with a significant amount of overhead that most users never need — including multiple language packs, noise suppression modules, auto-updater binaries, crash reporters, telemetry trackers, and GPU cache. This tool provides a clean GUI to selectively remove or disable these components without affecting anything critical to Discord's core functionality.
It is designed so that Discord consumes only what is strictly necessary, reducing its overall resource usage and making it significantly lighter.
Measured on a clean Discord installation (Stable, fresh install) — no other optimizations applied.
Results may vary depending on Discord version, installed modules, and selected options.
iwr "https://raw.githubusercontent.com/insovs/Discord-Optimization/main/DiscordOptimizationTool.ps1" -OutFile "DiscordOptimizationTool.ps1"; .\DiscordOptimizationTool.ps1or Download DiscordDebloatTool.ps1, then right-click it → Run with PowerShell
Caution
If PowerShell scripts are blocked on your system, enable execution first:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUserOr use EnablePowerShellScript for a one-click solution.
Is this safe to use?
Yes. The tool only removes files that Discord does not need to function (old versions, unused language packs, cache, telemetry modules). Nothing related to your account, messages, or servers is touched. You can enable the backup option in Advanced settings before running anything, which saves a full copy of your Discord folder to the Desktop.
is it a virus ?
No. PowerShell scripts that interact with the filesystem are commonly flagged as false positives by heuristic-based antivirus engines, especially when they modify program files or registry keys. This script contains no malicious code. You can verify this yourself:
- 📄 The script is fully open-source — read every line on this page before running it.
- 🔍 VirusTotal scan: View latest scan results →
I removed Game Presence / RPC and now FiveM / my game launcher can't link my account.
The Game Presence module (discord_game_sdk) is required for some games (FiveM, certain launchers) to link your Discord account. To restore it: re-install Discord, or restore from the backup saved on your Desktop if you had the backup option enabled.
Does this work on Discord PTB and Canary?
Yes. The tool auto-detects which Discord variants are installed (Stable, PTB, Canary) and displays them with color-coded status indicators. You can run it on any detected variant.
Can I restore my original Discord after debloating ?
Yes, if you enabled the backup option before running. A full copy of your Discord installation is saved to your Desktop. To restore: close Discord, delete the current installation folder, rename the backup to the original folder name, and relaunch.
Alternatively, a clean reinstall from discord.com will restore everything.
Strips unused components from your Discord installation directory.
- Removes old version folders (
app-x.x.x) and keeps only the latest - Deletes unused native modules while preserving the core runtime
- Removes all language packs except the ones you select (English, French, or both)
- Optionally removes the Krisp noise suppression module
- Optionally removes Game SDK DLLs (
discord_game_sdk_*.dll) - Optionally removes Game Presence / RPC support
- Removes junk files:
.sigsignatures, Vulkan/SwiftShader/d3dcompiler DLLs, unused Chromium assets - Removes the auto-updater binaries (
Update.exe, Squirrel, RELEASES) - Disables Discord autostart via registry Run keys and scheduled tasks
- Disables Fullscreen Optimization (FSO) for the Discord executable
Writes a performance-focused settings.json to your Discord AppData folder.
| Setting | Value | Effect |
|---|---|---|
enableHardwareAcceleration |
false |
Reduces GPU overhead |
SKIP_HOST_UPDATE |
true |
Prevents update checks on every launch |
DEVELOPER_MODE |
true |
Exposes extra tooling |
MINIMIZE_TO_TRAY |
true |
Hides to tray on close |
debugLogging |
false |
Stops writing verbose logs to disk |
IS_MAXIMIZED |
true |
Starts maximized |
START_MINIMIZED |
false |
Launches in foreground |
Clears accumulated runtime data from Discord's AppData folder.
Targets: Cache, Code Cache, GPUCache, ShaderCache, VideoDecodeStats, Cookies, Web Data, Databases, Session Storage, logs, Crashpad, debug, sentry, WidevineCdm, MediaFoundationWidevineCdm, blob_storage, CacheStorage, shared_proto_db, and more.
Optional: remove Local Storage (signs you out, but frees additional space).
Accessible via the Advanced button in the Debloat panel. Each option can be individually toggled — only apply what you need.
| Option | Default | Notes |
|---|---|---|
| Create backup before debloating | Off | Copies the full Discord folder to your Desktop |
| Remove Krisp | Off | Only disable if you use a separate noise cancellation solution |
| Remove Game SDK DLLs | On | Safe for most users |
| Remove Game Presence / RPC | Off | Required by some games (e.g. FiveM) for account linking |
| Remove auto-updater | On | Replaces the Desktop shortcut with a direct launcher |
| Disable autostart | On | Removes registry Run keys and scheduled tasks |
| Disable FSO | On | Prevents Windows from overriding exclusive fullscreen mode |
| Remove junk files | On | .sig, SwiftShader, Vulkan, d3dcompiler, unused Chromium paks |
Caution
Game Presence / RPC: removing this module disables rich presence broadcasting and may prevent joining servers that require Discord account linking (e.g. FiveM, some game launchers). Consider enabling the backup option before proceeding.
- Backup: if enabled, a full copy of the Discord installation folder is saved to your Desktop before any file is deleted.
- Two versions: by creating a backup, you can run both a debloated and an original version of Discord.
- After debloating: a
Discord Debloated.lnkshortcut is auto-created on your Desktop pointing directly toDiscord.exe— bypassing update checks on every launch. - After cleaning cache, some Discord UI preferences (font size, theme, etc.) may reset. Your account session will be preserved unless you opted into removing Local Storage.
(https://github.com/insovs/Discord-Optimization)

