You can replace with CHAR(10)+CHAR(13)an empty string:
declare @text nvarchar(max) =
'first row
second row
third row
'
print '--Before--'
print @text
print '--End'
select @text = REPLACE(@text,CHAR(10)+CHAR(13),'') --10 and 13, not 13 and 10!
print '--After'
print @text
print '--End'
You'll get:
--Before--
first row
second row
third row
--End
--After
first row
second row
third row
--End
There Beforeare 3 empty lines in the part
EDIT
, REPLACE RTRIM, :
select @text = RTRIM(REPLACE(@text,CHAR(32)+CHAR(13)+CHAR(10),''))