How to Enable TRIM for SSDs in Windows 10

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:

How to see if TRIM is enabled for SSD in Windows 10

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. Windows 10 open command prompt Windows 10 elevated command prompt
  • 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

That's it.

8 thoughts on “How to Enable TRIM for SSDs in Windows 10

  1. Jim

    I get:

    “Please use “fsutil 8dot3name query /?” for more information.”

    as a response. I used that and got a response that did not really lead me further.

    Reply
    1. Jim

      Version 1703 Build 15063.138

      Reply
  2. Leo

    To enable TRIM on NTFS you state command “fsutil behavior query disabledeletenotify NTFS 0”.
    In stead of “query”, don’t you mean “set”?

    Reply
    1. Sergey Tkachenko Post author

      Yep, sure it must be set!
      Sorry for this typo, fixing.

      Reply
      1. Jim

        Works! Thank you.

        Reply
  3. Leo

    @Jim
    If you get the “Please use…” output, you may have issued the command wrong. Please check your command.

    Reply
  4. Fred G Husby

    To check if TRIM is enabled, open cmd/powershell and write
    (IF “NTFS” or “ReFS” is NOT specified, BOTH values are shown.)

    (I’ve used PowerShell. PS. You should just write the command after >)

    PS C:\WINDOWS\system32> fsutil behavior query DisableDeleteNotify
    ANSWER;
    NTFS DisableDeleteNotify = 0
    ReFS DisableDeleteNotify is not currently set

    0 is OK, but ReFS has to be fixed

    To enable TRIM for the ReFS-storage, write;
    PS C:\WINDOWS\system32> fsutil behavior set disabledeletenotify ReFS 0
    ANSWER:
    ReFS DisableDeleteNotify = 0

    NEW CHECK:

    PS C:\WINDOWS\system32> fsutil behavior query DisableDeleteNotify
    ANSWER:
    NTFS DisableDeleteNotify = 0
    ReFS DisableDeleteNotify = 0

    Fixed!

    Reply
    1. John

      you don’t need enable ReFS because I believe you don’t even have SSD converted in that filesystem, anyway Windows 10 would automatically enable when someone really converted SSD to such filesystem

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *