Delete rows from a Google Sheet step

This step deletes a range of rows from a Google Sheet. It is most used as part of batching: read a single row from a Google Sheet, run the automation with that row's data, then delete the row before a Jump to another step step goes back to read the next one. To clear cells while keeping the rows, use the Clear data from a Google Sheet step instead.

You can use this step to:

  • Remove each row once it has been processed in a batch run
  • Clear processed rows from a queue sheet another app fills

To learn more about batching, see batching bot runs and the web scraping in batches template.

The Delete rows from a Google Sheet step with its Spreadsheet URL dropdown and Set sheet URL from data button, the Sheet name box, and the First row to delete and Last row to delete boxes

How to configure the Delete rows from a Google Sheet step


Spreadsheet URL

Select a Google Sheet, or paste its URL. You can also click Set sheet URL from data to pass a spreadsheet URL in from another step.

Sheet name

Optionally enter the name of the sheet, the tab at the bottom of the document, to delete from. Leave it blank to use the first sheet.

First row to delete

Enter the number of the first row to delete, or click Insert Data to take it from another step.

Last row to delete

Enter the number of the last row to delete. Everything between the first and last rows is deleted too, so set both to the same number to delete one row.

If you liked this step you may also wish to check out the Read data from a Google Sheet and Write data to a Google Sheet steps.

Guides that use this step