I need a way to clear the contents in the editor on the press of a button.
What is the clean way of doing this ??

Thanks a lot @benbro ,
Was expecting a much clear way todo
You can also setContents([]) and setText('') which will clear the text. Internally Quill's data model requires at least \n so this will be added for you.
You can use DOM to clear the Editor
var element = document.getElementsByClassName("ql-editor");
element[0].innerHTML = "";
AbdullahElamir thank you. This works
Hello
Delete with api
quill.deleteText(0,quill.getLength());
Most helpful comment
You can also
setContents([])andsetText('')which will clear the text. Internally Quill's data model requires at least \n so this will be added for you.