"Leave it" and "drop it" both help with unwanted objects, but they happen at different points in the sequence.
Leave it happens before the grab
If your dog sees food on the floor and you ask for "leave it," you're asking them not to take the item in the first place.
Start with something easy and reward your dog for disengaging from it. Gradually increase the value of the temptation while keeping the exercise successful.
Drop it happens after the grab
If your dog already has a toy, sock, or other object in their mouth, "drop it" asks them to release what they're holding.
Teaching this skill through a trade can be extremely useful. Your dog learns that releasing an item doesn't mean everything good disappears.
Don't turn every trade into a theft
If you constantly take things away without offering anything back, your dog may become more reluctant to release objects or may start guarding them.
A good release cue should feel predictable and worthwhile. Practice it with ordinary toys during calm situations so you're not inventing the behavior during a crisis.