When you delete a text inset from a document, the source file remains intact. However, the reference to the text inset is removed from the document.
To delete a text inset:
Select the text inset in the Insets panel.
You can also select the inset inside the document. However, to ensure that you have selected the inset correctly, select the inset in the Insets panel.
Click Delete.