Drawing objects on Spreadsheet got to be able to be managed

The drawing objects on Google Spreadsheet got to be able to be managed by the update at April 2, 2020. Ref

By this update, we can assign the function to the drawing objects and remove the drawing objects. The following sample is for removing the drawing objects on the active sheet. Ref

SpreadsheetApp.getActiveSheet()
  .getDrawings()
  .forEach(e => e.remove());

 Share!