Generally, if you want to shoot a lock (or door frame hinges) off, you use a shotgun with special breaching rounds.
Various forms of these have been and still are used by various Militaries, but more often SWAT or equivalent type units.
The general video gamey / movie portrayal of how this works is usually wildly exaggerated / inaccurate though, usually with pistols at moderate ranges.
Conceivably you might also be able take a door lock/hinges apart with an anti materiel rifle, but this would be wildly impractical.
If hinges are on the outside, in most cases you can just pull the pins out with pliers. Or a small hammer and a screwdriver to act as a drive punch. That’s why most exterior doors swing in (hinges on the inside) rather than out.
To add to this a bit more:
Generally, if you want to shoot a lock (or door frame hinges) off, you use a shotgun with special breaching rounds.
Various forms of these have been and still are used by various Militaries, but more often SWAT or equivalent type units.
The general video gamey / movie portrayal of how this works is usually wildly exaggerated / inaccurate though, usually with pistols at moderate ranges.
Conceivably you might also be able take a door lock/hinges apart with an anti materiel rifle, but this would be wildly impractical.
If hinges are on the outside, in most cases you can just pull the pins out with pliers. Or a small hammer and a screwdriver to act as a drive punch. That’s why most exterior doors swing in (hinges on the inside) rather than out.