The vertical line is either attached to the guide or the master page.
Clicking Command+Shift+mouse click on a Mac or Control+Shift+Left Mouse button on a Windows system will release the guide. Then press the delete key to send it to electronic nirvana.
I've tried that, but it removes everything on the page
Okay, add this:
1) Select the text. Move it off the page onto the pasteboard.
2) Put your cursor on the line, then Command/Control+Shift+click on it. You should see the line endpoints selected. If the text is still selected, hold down the shift key and click on it to de-select it.
3) With just the line selected, press the delete key.
4) Move the text back. That should work for you.
Got it, thank you so much!
Glad this worked for you.
Can I ask you a favor? Mark this question as answered so the moderators can archive it and it'll help others who need it.
And anytime you need help, give this place a shot. There are lots of folks here happy to lend a hand when you need it.