How to clear DeleteSet?

Hi,

I have a YDoc where user has typed some content, and deleted some content as well. I’m trying to recover the deleted content.

This is what the doc looks like:

Would it be possible to clear the DeleteSet from the document, so that I could see the full history?

I couldn’t figure it out in the API.

1 Like

You can undo changes using the undo manager. But you can’t manipulate the delete set.

You can use Y.createDocFromSnapshot(doc, new Y.Snapshot([ ], Y.snapshot(doc).sv) get a document with an empty delete set