Chances are, TRIM isn't supported.
BUT... don't worry about it.
TRIM will make next-to-no difference at all. It's one of those issues that is "lots of smoke but no fire".
I've been booting and running a 2012 Mac Mini for almost 6 years using an SSD in a USB3/SATA dock. The lack of TRIM has never been an issue ... NEVER.
Having said that, I keep plenty of free space on the SSD, so the OS has "room to breathe".
WRONG - TRIM makes a difference.
When that problem-free SSD he keeps basing this declaration of TRIM's irrelevance on does eventually die it may have been twice as fast as it would have in a TRIM-enabled machine.
No, TRIM does not work over USB in macOS and yes, TRIM absolutely does make a difference in performance and significantly reduces write amplification.
The lifetime of an SSD is calculated in write cycles.
SORTA WRONG - TRIM is not just about life cycles. It is relative to the type of NAND, Cache, and other "stuff"
No. TRIM DOES NOT matter that much any more.
It's Sushi's "advice" that is misinformation.
I stand by this post.
An open request to anyone reading this that is currently booting and running an iMac or Mini via USB:
Has the lack of TRIM mattered much for you?
If so, have you been able to document the information?
For someone with an older Mac (2012-2015), who has only a platter-based hard drive inside, and who wants to "squeeze more years of use" from it, adding an external USB3 SSD is a cost-effective solution. No breaking open the machine, no risk of breaking something inside.
It will greatly speed up the computer, and so long as the user leaves a good amount of free space on the SSD, it will probably continue to perform well long enough to "outlive" the computer itself.
WRONG - I have an older Mac with SSD SATA Drives. TRIM did not help. Garbage collection did not help. It did not live long enough.
I also had a USB 3.0 drive as boot up for my iMac 5k. I bought it 2 years ago. Drive is failing.
I have a MacBook Air. It's 5 years old. Still works great but the drive has lost 12% of the original space. I always kept it at 50%. Trim was running. Drive is weighing in at 350MBs write 420MBs read.
It's not black or white. It's complex.
Here was my reply to your demand almost a year ago. If you like, I can find other posts with more examples.
I understand you have not had any issues running without TRIM, but some users do.
GREAT ANSWER
Relying on garbage collection instead of TRIM is viable to some degree but not ideal. I bought a Mac Mini in 2012. I didn't want to go through the trouble of switching the internal drive to an SSD so I bought a 2.5" SSD and put it in an external enclosure and used that as my boot drive. It worked well for about 2 years but then I started experiencing horrible slowdowns if I wrote more than ~1GB to the drive over the course of a few minutes. Clearly I was exceeding the ability of the drive to free up empty blocks. It didn't happen often enough but the slowdowns were bad enough that I had to do something about it. (The system would hang for several seconds if it tried to write ANYTHING to the drive past ~1GB and it would stay like that for 15-30 minutes.) I bit the bullet and installed the drive internally, enabled TRIM, and that eliminated the slowdowns.
ALSO WRONG
SIGH.... ok here's the deal folks. No one is talking about all the reasons SSDs fail:
1) Is it DRAM-less?
2) MLC? TLC? SLC?
3) How much are you using it? Are you writing video?
4) What are you using it for? Database r/w?
5) Heat (NVME runs hot. This risks the life of the drive if it's tucked under a pile of papers)
If you are doing video, get a RAID setup. seriously. You can get a dual bay laptop 2.5" RAID for a decent price. You can also get a 4-bay Desktop RAID for about $100. Why? SSD is not meant for frequent reading and writing!!! If you opted for a TLC based consumer SSD, make sure you got one with an 2, 4, 6, 8 at the end. In other words, 128, 256, 512, 1024. That extra space is actually DRAM. Some manufacturers use MLC cache. For the most part avoid the 120, 240, 480, and 960. They are TLC and TRIM will be an absolute MUST otherwise your drive will begin to fail in a year.
Also remember that NAND is faster in larger sizes. "Wha????? Now you're making stuff up" No. How do you think they get from 120+8 to 240+16? What about 480+32 or 960+64? Do the cards get bigger? Do they just make this super long card with more chips? No. The actually do add more chips but they run them in parallel. In other words, they are multiple 120+8 or 240+16 drives in tandem. It sounds like RAID but it's parallel I/O because it's on the same PCB.
This is why a drive can appear to be so
fast. In actuality, it's just a byproduct of technology.
Ok what is SLC, MLC, TLC, or QLC? They stack the cells on top of each other to increase the amount of data that can be stored per chip. If you have a 240 GB drive with 1 chip and another with 4 then which one is likely to fail faster? what about a 256 with 2 chips and another with 6? The more chips there are, the less likely they are to be written on. The 6 chip is also odd because it is just 2 more chips but those are cache.
QLC solves the problem of adding fewer chips to the board. It creates a larger problem of adding more write cycles per chip. I don't care how much TRIM or garbage collection you have. Your drive is going to fail. Sure, TRIM will help and it will help the drive be fast but how fast is 240 or 256 compared to 960 or 1024? Remember - a 960 is just 240x4 run in parallel. A 1024 is 240+8 * 4 run in parallel.
All of this means you may think you're getting a performance boost with a large USB drive but it's only temporary if you got the 960. If you got a nice NVME then you have some cache so that will help. However, garbage collection will only help with that extra cache. TRIM helps even more and is more important without the cache.
So bottom line - UNMAP is great for USB 3.1. Apple DOES support UNMAP. It's in the code. If you know your way around the command line and can grep the drive with ioreg then you'll see. It's there.
I am not going to give you the exact commands. I spent hours trying to figure it out - on my own. You can too.
The challenge is whether the UASP device is going to accept the commands and if the drive will accept those commands. They were written for SCSI. In Windows and Linux, you can get it to work but you also have to run the drive as a SCSI (or SAS) drive. The thing about Windows - it has more support for these types of DIY devices. Apple moved further and further towards an end-to-end solution. They claim to be moving back to the "modular" realm but They said that in Fall of 2017 - before the tariffs and before pressure to assemble more products over here. Once upon a time, SCSI was synonymous with Apple. Funny how times change. Apple has left third party hardware to fade into the wind.
I think I covered my bases here. Everything is possible and it's not a simple answer. Basically, spend the money and get a Thunderbolt PCI enclosure (WITH FAN) and use a driverless PCI express card with NVME SSD or wait for USB 4.0 which will include parts of the Thunderbolt specification. (The most important part - the PCI express part) It's better than buying a new SSD every 1-2 years because they keep failing.
Good luck.