var params1 = {
spreadsheetId: 'Id',
range: "sheet 1!A2",
};
var clearValuesRequestBody = {
};
var request = await gapi.client.sheets.spreadsheets.values.clear(params1, clearValuesRequestBody);
I am trying to delete a row in google sheets using google sheets API in javascript. But I am able to delete only the first cell of the row. I believe there has to be something in clear values request body but I don't know what. Also if you can suggest me how to remove that blank row that has been created by deleting this row, that would be great.