"Leave it" teaches your dog one useful idea: if I look away from that thing, good stuff happens. It isn't about being told off. Your dog isn't being made to give something up; they're choosing the better deal, and that's why it holds up when it matters, like a dropped pill on the kitchen floor or a chicken bone on a walk.
Dog charities that teach this, such as Dogs Trust and Maddie's Fund, build it the same way: start with something boring, reward the moment your dog turns away, then make things harder one small step at a time.
Use tiny, tasty treats and keep sessions short, around 5 to 10 minutes. Only move to the next rung when the one below is easy.
The reward for leaving something should always come from you, never from the thing your dog was told to leave. If they get the item after the cue, they learn that the cue means nothing.
If your dog keeps grabbing the treat, you've moved up too fast or the temptation is too big. Go back to the last rung where they succeeded and progress more slowly. That isn't failing; it's how this works. Dogs Trust gives the same advice.
Never shout, grab the dog's mouth or use a harsh tone. Frightening a dog can make them worry about things being near them and can lead to guarding. Reward-based training is kinder and, for this skill, it works better too.
"Leave it" is a skill you build up. It isn't a guarantee. If your dog already has something dangerous in their mouth, don't chase or pull. Calmly offer something much better, such as a tasty treat tossed a few steps away, and pick up the item while they eat. This "trade" is also recommended by Dogs Trust.
Some things are worth keeping out of reach rather than relying on training: chocolate, grapes, raisins, sultanas and currants, xylitol (a sweetener in some gum and peanut butters), and medicines. If you think your dog has eaten any of these, call a vet straight away; don't wait for symptoms.
Reward the turn-away, go slowly, and take a step back whenever your dog is struggling.
This guide is general training advice, not veterinary advice. If your dog has swallowed something harmful, or is guarding or growling over objects, ask a vet or a qualified, reward-based trainer or behaviourist.