I don’t think this is an accurate definition or etymology. The phrase can mean “formally remove” or just “eliminate”. I think it always alludes to using a stick of wood to draw a line rather than a regulation or law.
But as for the meaning, that's what it's always meant when I've heard it said. So it definitely means that, at least colloquially.