Skip to main content

How to ensure TRIM is enabled on Windows 10 to keep an SSD at top performance

Besides getting a speedy processor and as much RAM as you can afford, a Solid State Drive (SSD) also plays a very important role in making your PC fast. However, an SSD will stay on it best performance and last longer only if it's properly maintained.

TRIM is an ATA command set that was originally designed for the purpose of keeping a Solid State Drive at its optimal performance throughout its lifespan.

The TRIM feature allows Windows 10, or any supported operating system, to notify an SSD which blocks of data are no longer in use and can be safely wiped out to be writable again. Having this operation done ahead of time improves performance, as the drive won't have to spend time erasing a particular block when space is needed to store new data, ensuring the SSD reaches its advertised lifespan.

While the operating system should properly detect and enable TRIM automatically, sometimes this may not happen. In this Windows 10 guide, we'll show you the commands to make sure TRIM is configured and how to enable it when it's not.

How to check TRIM is enabled in your Windows 10 PC

Making sure that TRIM is enabled on Windows 10, you only need to use a command using the Command Prompt with administrator privileges.

  1. Use the Windows key + X keyboard shortcut to open the Power User menu and select Command Prompt (Admin).
  2. Type the following command and press Enter:fsutil behavior query DisableDeleteNotify

Explanation: If after executing the

fsutil

command with the

DisableDeleteNotify

you get a result of zero (0), then it means that TRIM is enabled, and no further action is required. However, if after running the command you see a result of one (1), then it means that TRIM is disabled.

How to enable TRIM on your Windows 10 PC

When TRIM isn't enabled on Windows 10, you need to do the following:

  1. Use the Windows key + X keyboard shortcut to open the Power User menu and select Command Prompt (Admin).
  2. Type the following command and press Enter:fsutil behavior set DisableDeleteNotify 0

After running the command, you will notice the same DisableDeleteNotify = 0, which indicates that the feature is enabled.

How to disable TRIM

If at any time for any reason you need to disable TRIM, you need to do the following:

  1. Use the Windows key + X keyboard shortcut to open the Power User menu and select Command Prompt (Admin).
  2. Type the following command and press Enter:fsutil behavior set DisableDeleteNotify 1

For TRIM to work, both the operating system and the Solid State Drive must support the feature, and it must be enabled in the operating system.

While we're focusing the guide for Windows 10, you can use the same commands on Windows 7 and Windows 8.x.

Was TRIM enabled on your computer? Let us know in the comments below.

Windows 10 resources

For more tips, coverage, and answers on Windows 10, you can visit the following resources:

Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.

49 Comments
  • Learned Something New! Nice tip!
  • I use liquid state, so nothing to trimm here.
  • Everyone knows Bose-Eienstein Condensate state is the coolest.
  • Kelvin & Hobbes.
  • Cooler Master 4 pound copper heeatsink
  • Yes, you're right! But Zweistein HyperLiquidate is also very cool.
  • Ha! Quantum mechanics humor. Love it. Liquid Helium folks.
  • I assumed Windows would be smart enough to recognize TRIM and enable it if possible.... and in my case i was right:D
  • indeed
  • Don't have an SSD but the article is informative. Hope that an article to improve wifi speed comes up soon.
  • disable backwards compatibility, if your device is N, set the ap as N only, not N/G or N/G/B etc, use the channel with the least neighboors using it and dont pair more than 3 devices at once
  • More than 3? Bruh what dollar store router do you have? 10 and under is fine for any modern router
  • Never knew this
  • Does this apply for M.2 SSD also ?
  • Yes
  • Thanks :)  
  • I have a HDD :"(
  • If you query this with HDD, you can find it enabled..
  • What about TRIM or something similar for phone eMMC?
  • Nexus Line has that but for main storage only, for an external sd you can enable it via scripts
  • MS should bring TRIM to the Storage Sense app.
  • Windows key + x is equivalent to a right click on the start button, fyi.
  • Was enabled on Surface Pro 3 - Posted via W10M
  • And also enabled on Lenova ThinkPad W530. - Posted via W10M
  • Was enable on Lenovo Yoga 2 Pro also.
  • Enabled on my Surface 3. Please continue with these command line articles. They are very informative.
  • Ive got this reply :) Is this OK? I have Kisgston 220GB SSD. NTFS DisableDeleteNotify = 0
    ReFS DisableDeleteNotify is not currently set
  • Yes. ReFS is not in use on your computer.
  • Trim is automatically applied in Windows 8 onwards
  • Does this mean that TRIM is automatically applied to SSD drives or to all drives?  I'm running Win10 with a hybrid HD (SSHD) and I get NTFS DisableDeleteNotify = 0 when I run fsutil behavior query disabledeletenotify.  Is this an expected result for this type of drive and is there any harm in having TRIM enabled in this case?
  • Trim looks to be enabled on my Dell Precision M6700 with an added SanDisk SDSSDA-240G-G25. It was a clean load from a bootable USB. But CCleaner doesn't recognize the C: drive as an SSD. As a result the "Optimize" function isn't an option. Any thoughts on how to get the SSD properly recognized by CCleaner?  
  • You should never use an optimizer like that on an SSD. Posted via the Windows Central App for Android
  • Informative article, though there are lot of things when you consider a SSD, I wish there can be a detailed article on SSD and Windows 10. For example I ve a Samsung SSD and the Samsung Magician software shows me in one of the info sections that my OS is optimised for HDD, never went to change that option as my PC performance is anyways awesome. Also something about RAPID mode, etc. will be useful. So an informative article on Win10 and SSD will be appreciated. Posted from Windows Central for Windows 10
  • Typically the OS will choose HDD or SSD optimization when doing the initial OS install. Did you upgrade and clone over to an SSD? Or did you do a fresh install?
    Also, equally possible that Win10 is throwing back values that don't make sense to Sammy's software yet.
  • Wonder if their team that manages xbox was smart enough to have this setup for xb1 elites hybrid
  • Interesting.  On the query command I got this: C:\WINDOWS\system32>fsutil behavior query DisableDeleteNotify
    NTFS DisableDeleteNotify = 0
    ReFS DisableDeleteNotify is not currently set I was under the impression that ReFS was Server 2012 only, and that is was essentially getting dropped (some features getting folded into next gen NTFS).  But here on win10 fast ring it seems alive and well.
  • I use ReFS with Storage Pools on Win 10. There are striping, mirorring and etc. For example, I have 1 striped and 1 mirrored volume on one 3 HDD pool. The first one is for speed and the second one is for reliable storing.  HDDs may be of different sizes.  
  • And what about SSHD? Should this be enabled also?
  • I wouldn't do it on those because the SSD part of it is just cache to speed up software and all your data is being stored on the HDD. Of course, I don't use SSHDs on my computer, so I could be wrong.
  • Because a simple command like 'trim /status' would be just too hard for MS to manage.
  • Go to Control Panel - Administrative Tools - Defrag and Optimize Drives - read the screen and Bob's your uncle.
  • sadly the will remove the control panel ;-;
  • Good article
  • Cool..............learned a new thing.......
  • Many Thanks. And what about the case when Win 10 detects SSD like HDD. It will be useful to know whot BIOS settings are right for SSD - AHCI? IDE? RAID? 
  • These are storage modes, not storage optimizations. Posted via the Windows Central App for Android
  • I'll check it out when I come home but I bet it's covered by the Samsung app that keeps the SSD tuned.
     
  • This what showed on my SP2: NTFS DisableDeleteNotify = 0
    ReFS DisableDeleteNotify is not currently set
  • i am getting this message what dose this means C:\Windows\system32>fsutil behavior query DisableDeleteNotify
    NTFS DisableDeleteNotify = 0
    ReFS DisableDeleteNotify is not currently set OS Winsows 10 (AU)