Windows terminal update

What should I do to delete only the last line among the contents displayed in the Windows terminal?