Extra unattached copper line under bathroom sink
If there's a valve, then turn it off and remove the pipe. If you're concerned the valve will leak, then shutoff the water to that line, remove the valve and cap the pipe there (or replace any T's with a straight fitting).

Leaving the pipe and capping the thin refrigerator line will be difficult and error prone, and you're still left with a valve and two places that may leak.