Is clindamycin used to treat stds?

No. It's not used to treat stds, but it might sometimes be used as a component of therapy for pid.