Search Our Support Knowledge Base

Find product articles and support information.

TRIM Support for USB Flash, SSD and HDD on Windows and macOS

View the Use of Third-Party Software or Websites disclaimer.
Western Digital Support cannot help with third-party software or hardware.

What is TRIM?

TRIM is an Advanced Technology Attachment (ATA) command.
It allows the Operating System to tell the SSD when it can delete data blocks so they can be used again to write new data. TRIM works with Garbage Collection to clean up the drive. It can improve performance and extend the life of the drive.



Product TRIM Support

Drive Type TRIM Support
Internal SSD Yes
Internal HDD (SMR) Yes
Internal HDD (CMR) No
External SSD Yes 1
External HDD (SMR) Yes
External HDD (CMR) No
USB Flash Drive No
microSD Card No
SD Card No
CFast Card No
CompactFlash No
CFexpress No


1 SanDisk Extreme Portable SSD
  • TRIM is ON by default and cannot be turned OFF.

1 My Passport SSD

External Drive Support

TRIM on the USB (SCSI) side is called UNMAP or UAS / UASP (USB Attached SCSI).
The controller does the UNMAP/UAS to TRIM translation.

UNMAP / UAS / UASP is used for:



Internal Hard Disk Drive Support

TRIM is supported on internal SMR hard drives.

Need more help?



Western Digital Dashboard

Download and install the Western Digital Dashboard for Windows.
It can be used to Enable TRIM on Windows and run the TRIM command.

Need more help?
Answer ID 31759: Download, Install, Test Drive and Update Firmware Using Western Digital Dashboard



Windows TRIM Support

TRIM is turned on in Windows 11 and 10 by default.
Use these steps to check if TRIM is enabled.

  1. Enter Command Prompt in the search box.
    Right-click Command Prompt.
    Left-click Run as administrator.
    Click Yes.

  2. Copy and paste this command.
    Press the enter key on the keyboard.

    fsutil behavior query DisableDeleteNotify 





    NTFS:

    • NTFS DisableDeleteNotify = 0 (Disabled) TRIM support enabled for SSD.
    • NTFS DisableDeleteNotify = 1 (Enabled) TRIM support disabled for SSD.
    • NTFS DisableDeleteNotify is not currently set.
    • TRIM will automatically be enabled if an SSD with NTFS is connected.

    ReFS (Resilient File System):

    • ReFS DisableDeleteNotify = 0 (Disabled) TRIM support enabled for SSD.
    • ReFS DisableDeleteNotify = 1 (Enabled) TRIM support disabled for SSD.
    • ReFS DisableDeleteNotify is not currently set.
    • TRIM will automatically be enabled if an SSD with ReFS is connected.


macOS TRIM Support

macOS enables TRIM for internal Apple SSD by default.
Use these steps to check if TRIM is turned on.



TRIM for APFS formatted USB SSD can be turned on.



Check Status

  1. Click the Apple icon.

  2. Select About This Mac.

  3. Select System Report.

  4. Go to Hardware.
    Select *connection type* Express.

  5. Find TRIM Support.



Turn on TRIM Support

  1. Open macOS Terminal.

  2. Copy and paste this command.
    Press the enter key on the keyboard.

    sudo trimforce enable



  3. Enter the password when prompted.
    Press enter.

  4. Enter Y to enable.
    Press enter.

  5. Enter Y to reboot.
    Press enter.

Details
Answer ID 25185
Published 12/21/2018 01:05 PM
Updated 03/20/2024 05:44 AM

Please rate the helpfulness of this answer