Delete sheet in Google Sheets

Hello all!

Is there a way to delete an entire sheet in google sheets? e.g I have a google sheet with 2 tabs named "sheet1" and "sheet2". Is there a way to delete "sheet1" entirely?

Thanks,

Hey @Miotx! Would an answer in this thread be helpful?

http://community.retool.com/t/how-do-i-delete-data-on-a-google-sheet-from-retool/8472

Hi Victoria!

Thanks for your reply. I set up the OAUTH but I need help in figuring out how to use this request:

https://developers.google.com/sheets/api/samples/sheet#delete

Every time I try it, I get an error (see screenshot).

Thanks,