I have tried this but the document still stays in my google drive.
doc = DocumentApp.create('document')
doc.removeEditor('myself')
I know i cant remove myself but is there any way to avoid it.
doc = DocumentApp.create('document')
doc.removeEditor('myself')
what will work. In short I want to add someone else to the document and remove myself.