This tutorial will show you how to check the current status of TRIM support for SSD drives, and to enable or disable TRIM support on SSD drives with NTFS and ReFS file systems for all users in Windows 10 and Windows 11.
When you delete a file on a SSD or NVMe drive, Windows sends a TRIM command to the drive to notify the drive of pages which no longer contain valid data. The SSD will then erase those pages in the background.
The TRIM command is essential to maintain the performance of SSD and NVMe drives at an optimal level over the lifetime of the drive. TRIM functions by actively deleting invalid data from the SSD’s memory cells to ensure that write operations perform at full speed. Since a memory block must be erased before it can be re-used, TRIM improves performance by pro-actively erasing pages containing invalid data, allowing the SSD to write new data without first having to perform a time-consuming erase command.
For a file deletion operation, the operating system will mark the file's sectors as free for new data, then send a TRIM command to the drive. After trimming, the drive will not preserve any contents of the block when writing new data to a page of flash memory, resulting in less write amplification (fewer writes), higher write throughput (no need for a read-erase-modify sequence), thus increasing drive life.
Delete notifications (also known as trim or unmap) is a feature that notifies the underlying storage device of clusters that have been freed due to a file delete operation. In addition:
- For systems using ReFS v2, trim is disabled by default.
- For systems using ReFS v1, trim is enabled by default.
- For systems using NTFS, trim is enabled by default unless an administrator disables it.
- If your hard disk drive or SAN reports that it doesn't support trim, then your hard disk drive and SANs don't get trim notifications.
- Enabling or disabling doesn't require a restart.
If you are trying to recover deleted data from a SSD or NVMe drive, then temporarily disabling TRIM support may help allow you to recover the data before TRIM clears it permanently.
References:
Trim (computing) - Wikipedia
fsutil behavior
Reference article for the fsutil behavior command, which queries or sets NTFS volume behavior.
learn.microsoft.com
Contents
- Option One: Check Current Status of TRIM Support
- Option Two: Enable TRIM Support
- Option Three: Disable TRIM Support
1 Open Windows Terminal, and select either Windows PowerShell or Command Prompt.
2 Copy and paste the command below into Terminal, and press Enter. (see screenshots below)
fsutil behavior query disabledeletenotify3 You can now check the output to see if TRIM support is currently enable or disabled.
TRIM Support Output | Description |
|---|---|
| NTFS DisableDeleteNotify = 0 | TRIM support enabled for SSDs with NTFS |
| NTFS DisableDeleteNotify = 1 | TRIM support disabled for SSDs with NTFS |
| NTFS DisableDeleteNotify is not currently set | TRIM support for SSDs with NTFS is not currently set, but will automatically be enabled if a SSD with NTFS is connected. |
| ReFS DisableDeleteNotify = 0 | TRIM support enabled for SSDs with ReFS |
| ReFS DisableDeleteNotify = 1 | TRIM support disabled for SSDs with ReFS |
| ReFS DisableDeleteNotify is not currently set | TRIM support for SSDs with ReFS is not currently set, but will automatically be enabled if a SSD with ReFS is connected. |
This is the default setting.
You must be signed in as an administrator to use this option.
1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.
2 Copy and paste the command below for what you want into Terminal (Admin), and press Enter. (see screenshot below)
(Enable TRIM support for SSD with NTFS file system)
fsutil behavior set disabledeletenotify 0OR
fsutil behavior set disabledeletenotify NTFS 0AND/OR
(Enable TRIM support for SSD with ReFS file system)
fsutil behavior set disabledeletenotify ReFS 0You must be signed in as an administrator to use this option.
1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.
2 Copy and paste the command below for what you want into Terminal (Admin), and press Enter. (see screenshot below)
(Disable TRIM support for SSD with NTFS file system)
fsutil behavior set disabledeletenotify 1OR
fsutil behavior set disabledeletenotify NTFS 1AND/OR
(Disable TRIM support for SSD with ReFS file system)
fsutil behavior set disabledeletenotify ReFS 1That's it,
Shawn Brink
Last edited:











