In the Format unlock it before you can remove it.
If no selection handles appear at the ends of a line: It was added as a rule. Select the text above the rule, then click the Layout button near the top of the Format Add a border around a page.