The RHS believes that avoiding pests, diseases and weeds by good practice in cultivation methods, cultivar selection, garden hygiene and encouraging or introducing natural enemies, should be the first line of control. If chemical controls are used, they should be used only in a minimal and highly targeted manner.
It is usually easy to control shoofly plant, where it becomes a weed.
If it becomes invasive prevention of seeding is the best remedy. Young plants are easily controlled by hoeing or hand weeding.
None usually necessary as occurrence is sporadic.