Hi there,
There is no problem at all using clean command with HDD ( Hard Disk ) but it is not recommended for SSD ( Solid State Drives ) Because the way SSDs Work is different from HDDs and in SSDs The more your read and write the more your life span will Reduce Slowly
Two - Three times if you're doing this in a Year than it's Fine but it is not recommended to do so!
One Bonus Tip: if you are using SSD you don't need to Defrag your SSD! it will just reduce the lifespan of your SSD!
Thanks, Stay Safe!