TRIM is a special ATA command which was developed to keep the performance of your SSD drives at peak performance for the duration of your SSD's life. TRIM tells the SSD controller to erase invalid and unused data blocks from the storage in advance, so when a write operation happens, it finishes faster because no time is spent in erase operations. Without TRIM automatically working at the system level, your SSD performance will degrade over time unless you manually use a tool which can send the TRIM command to it. Here is how to disable or enable the TRIM function for your solid state drives in Windows 10.
By default, TRIM is enabled for all SSDs. However, it is a good idea to check if TRIM is correctly enabled for your SSD in Windows 10 before proceeding. Refer to the following article:
In short, you need to execute the following command in an elevated command prompt:
fsutil behavior query disabledeletenotify
In the output, you may find one of the following values.
NTFS DisableDeleteNotify = 0 - TRIM support is enabled for SSDs with NTFS
NTFS DisableDeleteNotify = 1 - TRIM support is 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.
In Windows 10, TRIM is supported for both NTFS and ReFS file systems. If your drive is formatted with ReFS, the fsutil command will report the following.
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.
As you may know, when you delete any data from your solid state drive, Windows marks it as deleted. However, the data physically remains on the drive and can be recovered. It is the SSD controller's garbage collection, wear levelling algorithms and TRIM which tell it to wipe the blocks so they are empty and ready to be rewritten. Thanks to TRIM, storage blocks which contain the deleted data will be wiped and the next time the same area is written to, the write operation will be performed faster.
To enable TRIM for SSD in Windows 10, you need to use the FSUTIL tool. Do the following.
- Open an elevated command prompt instance.
- If your drive is formatted with NTFS, use the following command to enable it.
fsutil behavior set disabledeletenotify NTFS 0
The following command will disable it.
fsutil behavior set disabledeletenotify NTFS 1
- If your drive is formatted with ReFS, use the following command to enable TRIM for your SSD:
fsutil behavior set disabledeletenotify ReFS 0
The opposite command is as follows.
fsutil behavior set disabledeletenotify ReFS 1