

The Prime Directive is that the Federation won’t interfere with the development of a pre-warp society.
It is NOT foreign policy that they try to enforce against other warp-capable civilizations.
A couple that come to mind is VOY “False Prophets” where they expel a couple parasitic Ferengi or ENT “Civilization” where warp-capable aliens are causing toxic pollution in a pre-warp society.
Dentist’s office waiting room is tolerable before smartphones thanks to these.