How to deal with abandoned wire?
If the wire is completely disconnected from the panel, and you've confirmed with appropriate testers that there is no voltage running through it, the line is safe.  You can cut it back as much or as little as you like.

I'd suggest that you cut it back on both ends - so that it cannot reach the panel and be hooked up again in the future by someone else who doesn't know better.