When clams look like that, it is pretty much over in 24 hours.
If it looks better to you than that picture, you can gently remove it by cutting the byssal strands at the base (as close to the rock as possible), and then do a 30 minute RO water dip.
Temp and pH should match, and then bring it back to the reef water.