From what I understand many people now say that H.Pylori causes ulcers.
But ... I am not sure what research has been done, but just finding H.P at the site of ulcers does not mean they caused them.
They could just congregate at the ulcer sites if the stomach was weakened through a different mechanism.
Now of course you could kill them, which might relieve things, but the question is what caused the initial weakening of the stomach, which has yet to be attended to ?