That has nothing to with training and is potentially dangerous – you’re running the risk of your dog becoming food aggressive/learning to resource guard.
Yes, if there’s nothing in it for the dog. We don’t just snatch it away. She’s told to sit, the food is removed, and she’s given a small tasty treat in return. Then the food is returned, (she’s still under the ‘Wait!’ command at this point), and then when we say so she’s allowed to resume. She doesn’t fear that it’s going to be taken away from her, but she defers to us to decide when she can have it.
Controlling the resource; whether that’s food, access to toys/playtime, walks, etc. is part of the process of establishing leadership.
This is not us randomly doing this, she’s been to dog training classes since she was vaccinated, is extremely well socialised with other dogs and people as a result, and these techniques are completely as advised by the trainer. She’s an extremely happy and well adjusted dog as a result, and i’d advise anyone having a dog from a puppy to invest in some classes.