Delete elements from Y.Doc

Hi all,

Just want to know whether it is possible to delete elements from Y.Doc, more specifically

after defining ytext = doc.getText(‘foo’)
would it be possible delete the foo entry, if I not longer want it?

Cheers
Elliott

Hey @elliott-wen,

If you are no longer interested in tracking a certain document type, you can simply create a new document. Top-level types are part of the document and can’t be deleted. You can delete the content of a type though.