How can I erase a polygon from a line to get the erased line?
Conceptual image below.
If your license level allows it, use the Erase Tool.
If your license level will not allow it, you can find a workaround at Performing reverse clip in ArcMap?