If an interstellar-capable species wanted to wipe out humanity, then they could easily bomb us with relativistic projectiles by throwing their trash at Earth.
If they still wanted the biosphere intact afterwards, then they could alternatively deploy a targeted anti-human bioweapon.