Hiding piano pedal lines

Not sure what you’re doing wrong, but wait for it…

Do you have Pedal Lines checked in the signposts menu?