How to see if TRIM is enabled for SSD 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 not used 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. So it's always a good idea to check if TRIM is correctly enabled for your SSD in Windows 10 and enable it, if it is disabled.

Advertisment

ssd banner logoAs 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.

So, 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.

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

To see if TRIM is enabled for your SSD in Windows 10, you need to run a single console command in an elevated command prompt. Do it as follows.

  1. Open an elevated command prompt instance.Windows 10 open command promptWindows 10 elevated command prompt
  2. Type or copy-paste the following command:
    fsutil behavior query disabledeletenotify
  3. In the output, take a look at the DisableDeleteNotify value. If it is 0 (zero), then TRIM is enabled by the operating system. If it is disabled, then the value of DisableDeleteNotify will be 1.

In the following example, TRIM is enabled for the disk drive where Windows 10 is installed:Windows 10 check TRIM status

How to enable TRIM for SSD in Windows 10

To enable TRIM for SSD in Windows 10, you need to do the following:

  1. Open an elevated command prompt instance.
  2. Type or copy-paste the following command:
    fsutil behavior set disabledeletenotify 0

    This will enable TRIM support for the solid state drive.

  3. If you decide to disable it in the future, you can do it with the following command:
    fsutil behavior set disabledeletenotify 1

Windows 10 change TRIM statusEverything above is also applicable to Windows 8 and Windows 7.

That's it. You are done. Now, check your TRIM status and tell us which SSD you have and which TRIM status it has in Windows 10.

Advertisment

8 thoughts on “How to see if TRIM is enabled for SSD in Windows 10

  1. skylake

    Hi Sergey Tkachenko,

    I have DisableDeleteNotify = 0 on the SSD that I have Win 10 installed. But I have another SSD for games..how can I check that DisableDeleteNotify is enabled as well for that SSD?

    Reply
    1. Sergey Tkachenko Post author

      Can you show me your output?
      The command should report the TRIM status for all drives.

      Reply
      1. skylake

        The output is DisableDeleteNotify = 0. I just wanted to make sure if there is a way to check if other SSDs installed have it enabled as well.

        Reply
        1. TrainedToGo

          DisableDeleteNotify corresponds to a single key in the Registry of the same name in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem – this key doesn’t appear to make any distinction between drives.

          If you really want to test, try trimcheck from https://github.com/CyberShadow/trimcheck#download. Run it from the non-system SSD, run Defragment and Optimise Drives (dfrgui.exe), optimise that drive and see if trimcheck reports success. Running dfrgui manually shouldn’t be a problem; as far as I know, Windows only TRIMs on a schedule.

          Reply
  2. Edison

    when trying to enable TRIM on win10 with [too long text is removed]
    by the way thanks for very useful and good tips.

    Reply
    1. Sergey Tkachenko Post author

      Please use the following command: fsutil behavior set disabledeletenotify 0
      I am very sorry for that typo!

      Reply
  3. kevin

    besides TRIM, are there any other commands for SSD drives?
    thanx

    Reply
  4. Jeffrey Burley

    Interesting. I ran the command prompt to see if Trim was enabled and the results were “=0 (DISABLED)”. I followed up with the command prompt to include “=1” and the result came back “=1 (ENABLED). This is the opposite of your instructions. I am running Windows 10, latest updates as of 3/3/2019. I assume the words enabled and disabled are real-time results. What could be wrong?

    Reply

Leave a Reply

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