The trim command (ATA TRIM, SCSI UNMAP) allows an operating system to inform a SSD device that certain blocks are no longer active and can be reused.
Trim has been available with SSD products very early on however operating system support lagged the hardware development.
Early SSD drives often were wiped (reset) to be able to use them over again. The inconvenience of the blanket erasure is a major drawback. Circa 2014, SSD drives started using internal garbage collection which sought to maintain performance at the expense of write amplification.
File systems are generally all designed for hard disks. SSD drives emulate a hard disk but operate completely differently.
Windows 7 supports TRIM for SATA type devices only. Windows 8 and above support NVMe which has better support for SSD and other storage technologies. Trim is not well supported with hardware RAID. Windows 10 does have support for storage spaces using SSD.
Windows users can use the disk defragmenter tool to TRIM their SSD. This only needs to be done every 60 days. Its advisable to maintain at least 10% free space with a SSD for internal garbage collection in addition to provide more room for TRIM to operate.