Windows 11 Optimize SSD TRIM Command
Windows 11 usually keeps SSD TRIM on automatically; check it with fsutil behavior query DisableDeleteNotify, and 0 means TRIM is enabled while 1 means it is off for the filesystem you are checking. If TRIM is disabled, an SSD can lose write efficiency over time and keep freed blocks from being cleaned promptly. This guide shows the Windows 11 optimize SSD TRIM command, what each result means, and whether you should change anything manually.
How TRIM frees up SSD blocks after file deletion
TRIM is an SSD maintenance command that tells the drive which deleted blocks are no longer in use. On SATA SSDs, it is described as an ATA command. Windows uses that signal so the drive can handle freed pages more efficiently instead of treating them like live data.

That matters because SSDs manage flash memory differently from hard drives. When Windows deletes files, the data may still sit in the background until TRIM marks those blocks as available for internal cleanup. MakeUseOf says the command may improve drive performance, and Tom’s Hardware frames the goal as maintaining drive health and performance on Windows 10 or 11.
Modern NVMe SSDs also clean up deleted data efficiently, so you usually do not need to micromanage TRIM on a healthy Windows 11 install. The main question is whether delete notification is on, not whether you should force a separate “performance boost” setting.
What changes for deleted blocks
When TRIM is active, Windows can notify the SSD that specific pages are free. That lets the drive clean up unused space in advance instead of waiting until a write request arrives.
That is why the feature is about write handling, not file visibility. It does not erase the file from the interface any faster, and it does not change how you delete something in File Explorer. It changes what the SSD can do with the freed space after deletion.
When TRIM matters most
TRIM matters most when an SSD spends time creating and deleting files, or when free space is getting tight. It also matters when a drive has been in service long enough that background cleanup starts to affect write consistency. For external SSDs, the result depends on the enclosure, bridge chip, USB mode, and storage driver path, so support may not carry through end to end even when Windows shows delete notification as enabled.
Picture a 1 TB NVMe drive that feels slower after months of downloads and deletes. TRIM being on does not rule out a separate problem, but it does mean the first suspect is usually not the delete-notification setting itself.
How do you check TRIM status?
Check TRIM from an elevated Command Prompt with fsutil behavior query DisableDeleteNotify. Windows can return separate NTFS and ReFS values, so the result is not always one simple number. For the common case, 0 means delete notification is enabled and 1 means it is disabled. That is a filesystem status check, not a universal device-level flag for every storage path.
The command typically requires administrator privileges. Open Command Prompt as administrator, run the query, and read both values if Windows shows more than one filesystem. That is the cleanest way to answer “how do you check if TRIM is enabled on your SSD” without changing anything.
Open an elevated Command Prompt. Search for Command Prompt, then choose the administrator option. The command needs admin rights, so a normal prompt may fail or return incomplete information.
Run the query command. Type
fsutil behavior query DisableDeleteNotifyand press Enter. If Windows shows separate NTFS and ReFS entries, treat them as separate status lines rather than forcing them into one universal result.Read the value correctly. A value of
0means delete notification is enabled. A value of1means it is disabled. If you see mixed filesystem entries, check which one matches the volume you are actually troubleshooting.
Suppose your system shows NTFS = 0 and ReFS = 1. That does not mean the SSD is “half on” in a vague sense; it means one filesystem has delete notification enabled and another has it disabled. The correct next step is to match the status to the volume in question.
How do you change TRIM on or off?
Use fsutil behavior set disabledeletenotify 0 to enable delete notification and TRIM, or fsutil behavior set disabledeletenotify 1 to disable it for the filesystem you are targeting. These are administrator-only changes. In normal Windows 11 use, the setting takes effect immediately and can be checked again right away.
Do not treat this as a routine tuning step. If TRIM is already enabled, changing it again usually adds risk without solving a real problem. If you disable it, do so only for a specific reason.
Open Command Prompt as administrator. This is required for both the enable and disable commands. Without admin rights, Windows will not let you change the delete-notification flag.
Enable TRIM when needed. Run
fsutil behavior set disabledeletenotify 0. That re-enables delete notification for supported filesystems and is the right choice for most Windows 11 systems.Disable TRIM only sparingly. Run
fsutil behavior set disabledeletenotify 1only if you have a clear reason to trade away normal cleanup behavior.Check the result again. Re-run the query command to confirm the current state. You usually do not need a restart to verify the change, since the setting is generally applied right away.
SSD TRIM decision table
This table gives a simple decision path for common Windows 11 cases. Use the current DisableDeleteNotify value to decide whether to leave the setting alone or change it.
| Scenario | Current DisableDeleteNotify value | Recommended action | Risk note |
|---|---|---|---|
| NVMe SSD on Windows 11 | 0 | Leave it alone and check something else if performance feels off. | Changing a healthy setting rarely helps; look at drivers or firmware first. |
| SATA SSD | 0 | Keep TRIM enabled and use normal Windows maintenance. | Disabling TRIM can make deleted-file recovery less likely. |
| External SSD | 0 | Verify the enclosure and storage driver before changing TRIM. | USB bridge behavior can mask the real issue. |
| Any SSD, deleted-file recovery matters | 1 | Enable TRIM only if recovery is not the priority; otherwise leave it off for the specific volume. | Disabling TRIM is a recovery tradeoff, not a performance tweak. |
| Any SSD, TRIM accidentally disabled | 1 | Run the enable command and recheck the status. | Leaving it off can delay cleanup of freed blocks. |
Is Optimize Drives the same thing?
No. Optimize Drives, opened through dfrgui.exe, is the Windows 11 drive optimization interface. It is used for scheduled optimization, which SoftwareOK says can be weekly or daily, and it applies on Windows 11 Home and Pro. That is separate from turning TRIM on or off.
The command-line flag controls delete notification. Optimize Drives manages maintenance scheduling for the drive. Those are related, but they are not the same task. A system can have TRIM enabled while also using the optimization interface on its own schedule.
What dfrgui.exe does on Windows 11
dfrgui.exe opens the built-in optimization tool. It is where Windows schedules maintenance and lets you view drive status. That is useful for regular upkeep, but it does not change the meaning of DisableDeleteNotify.
For SSDs, Windows handles optimization differently than it does for HDDs. The point is maintenance, not a manual “trim on/off” switch. Keep those two functions separate when you diagnose a slow drive.
Why scheduling is separate from the command
Optimize Drives can run on a schedule while TRIM remains enabled. So if you search “windows 11 optimize ssd trim command” or “windows 11 optimize ssd trim command asus,” the important split is still the same: scheduling in the GUI, delete notification in fsutil.
A common first-timer mistake is to assume that opening Optimize Drives proves TRIM is enabled. It does not. The only reliable check for the setting is the elevated Command Prompt query.
TRIM is on, but the SSD still feels slow
If DisableDeleteNotify already shows 0 and the SSD still feels slow, the problem is probably elsewhere. Check the storage driver, firmware level, BitLocker status, and any OEM storage utility before changing TRIM. Those items can affect how Windows and the drive communicate.
BitLocker can change how deleted-file recovery is understood on an encrypted volume. OEM tools can also apply their own storage settings or health checks, which can confuse diagnosis if you only look at the Windows flag. In that case, the cleanest next move is to confirm the exact drive model and compare Windows settings against the manufacturer’s listing for your model.
Check the storage driver. Confirm whether Windows is using the expected storage driver for the controller. A driver issue can look like an SSD problem even when TRIM is already enabled.
Review firmware and OEM tools. Look for vendor utilities that manage storage or power behavior. If the tool changes drive policy, it can affect perceived performance more than the TRIM flag does.
Check BitLocker context. If the system volume is encrypted, deleted-file recovery expectations are different from an unencrypted drive. That matters more when you are deciding whether to turn TRIM off than when you are simply verifying status.
Compare against Windows maintenance. Use Optimize Drives for normal maintenance and use
fsutilonly for the setting itself. Treat them as separate checks so you do not chase the wrong cause.
Windows 10 or 11 SSD optimization still includes broader maintenance such as drive optimization and power plan adjustments. Keep SSD and HDD maintenance separate. A setting that helps an HDD is not automatically useful for an SSD.
Frequently asked questions
How do I check if TRIM is enabled on my SSD?
Open Command Prompt as administrator and run fsutil behavior query DisableDeleteNotify. Windows may show separate NTFS and ReFS values. A result of 0 means TRIM is enabled, while 1 means it is disabled for that filesystem.
Should I manually run TRIM on Windows 11?
Usually no. Windows 11 generally handles SSD TRIM automatically when delete notification is enabled. Manually changing the setting is only worth it when you are verifying status, restoring TRIM after a mistake, or making a deliberate recovery tradeoff.
What does TRIM do to SSD?
TRIM tells the SSD which deleted blocks are free so it can manage them more efficiently. That helps the drive handle future writes and can support steadier performance over time. It also reduces the chance that deleted files remain easy to recover.






