Hello there,
By default, Windows will run the retrim optimization on a weekly schedule. Again, just like defragging your SSD isn't a concern, this isn't something you should need to worry about.
Enter the following command: fsutil behavior query DisableDeleteNotify and hit Enter. If the output is DisableDeleteNotify = 1, TRIM is currently disabled on your device.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--