Storage

How do I enable TRIM on a Windows SSD?

Updated 2026-08-18

Quick answer

To enable TRIM on Windows 10/11, open an admin Command Prompt and run `fsutil behavior set DisableDeleteNotify 0`. Confirm TRIM is enabled with `fsutil behavior query DisableDeleteNotify` — `NTFS DisableDeleteNotify = 0` means TRIM is active.

TRIM optimizes SSD performance by marking unused blocks for deletion, which helps maintain high write speeds. Windows typically enables TRIM automatically for internal SSDs, but it can be manually checked and set if needed.

Steps

  1. 1

    Check whether TRIM is enabled

    Open Command Prompt as Administrator and run: `fsutil behavior query DisableDeleteNotify`. Ensure `NTFS DisableDeleteNotify = 0` to confirm TRIM is enabled.

  2. 2

    Enable TRIM if it is disabled

    In the admin Command Prompt, execute: `fsutil behavior set DisableDeleteNotify 0`. Re-run the query command to verify the change.

  3. 3

    Verify SSD optimization settings

    Search for 'Defragment and Optimize Drives' in the Start menu. Ensure your SSD is listed as a 'Solid state drive'. Select it and click 'Optimize' to check the last run status.

  4. 4

    Update storage drivers

    Download and install the latest storage or NVMe drivers from your motherboard or laptop manufacturer's website to ensure compatibility and performance.

  5. 5

    Test SSD in different configurations

    If TRIM issues persist, try connecting the SSD directly to the motherboard or use a UASP and TRIM-capable USB enclosure.

What TRIM is (and is not)

TRIM is a command that informs an SSD which data blocks are no longer in use and can be wiped internally. This process helps maintain the SSD's performance over time by preventing slowdowns due to lack of available blocks. Unlike traditional defragmentation, TRIM is a maintenance task specific to SSDs.

When Windows cannot send TRIM

TRIM may not work with SSDs in USB enclosures unless the enclosure supports it. Certain RAID configurations and incorrect drive recognition can also prevent TRIM from functioning. Ensure the drive is recognized as an SSD in the Optimize Drives tool.

Troubleshooting TRIM issues

If TRIM is not working, update your storage drivers from the manufacturer's website. For SSDs in USB enclosures, ensure the enclosure supports UASP and TRIM. Consider connecting the SSD directly to the motherboard if possible.

Watch out for

  • Avoid using traditional defragmentation tools on SSDs as they can cause unnecessary wear.
  • A setting of DisableDeleteNotify = 0 does not guarantee TRIM support in all USB enclosures.

FAQ

Does Windows 11 enable TRIM by default?

Yes, for internally connected SSDs that are correctly identified by Windows. It's advisable to check after hardware changes or driver updates.

Should I run Optimize Drives every day on an SSD?

No, running it weekly is sufficient. Daily optimization is unnecessary and can cause additional wear on the SSD.

Is TRIM the same as secure erase?

No, TRIM is for regular maintenance, while secure erase is used to completely wipe a drive before disposal or resale.