Cut rectangle in half diagonally

Hi,

I created a rectangle (image below) and I create a diagonal line conecting 2 nodes of the rectangle in half. Now I need to remove the top and left line of the rectangle, how do I do that? At the end I will have only a triangle if I remove the 2 lines correctly.