---
title: What is the relationship between TRIM and Garbage Collection?
description: TRIM is an OS (Operating System) command set, which was started supporting Windows 7. When the user deletes a file, OS sends TRIM to inform SSD about the operation, then SSD marks the specific storage units to the invalid state.…
url: "https://www.szyunze.com/support/what-is-the-relationship-between-trim-and-garbage-collection/"
updated: "2023-08-27"
category: Solid State Drive
---

# What is the relationship between TRIM and Garbage Collection?

TRIM is an OS (Operating System) command set, which was started supporting Windows 7. When the user deletes a file, OS sends TRIM to inform SSD about the operation, then SSD marks the specific storage units to the invalid state. Once the GC operates, GC could be more precise and efficient to erase the storage unit without unnecessary reallocation of data in flash memory.
