I probably will get downvoted for this but I can\'t do anything else. I searched, read and tried SOOOO many things. I am new at both Javascript and Google platform.
If my understand is correct, I think that delete()
might be new method which will be added for Spreadsheet in the near future. So the document is not updated and it might not complete yet. But from the error message, if you want to use the current delete()
method, how about this sample script?
var images = sheet.getImages();
var img = images[0];
img["delete"](); // this one
img["delete"]()
. I think that this is one of new methods.If I misunderstand your question, I'm sorry.
Now in order to delete the image, the following method can be used. This was confirmed at 2018 October 13.
var images = sheet.getImages();
var img = images[0];
img.remove(); // Here
This was officially released at October 30, 2018.
You can see the document at Class OverGridImage.