GOOGLE WORKSPACE Delete rows function

The GOOGLE WORKSPACE Delete rows function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Workspace connector function to delete rows from a Google Sheet.

For a full list of available functions, please read GOOGLE WORKSPACE functions.


Description

The Delete rows function removes rows from a Google Sheets spreadsheet. Remaining rows are shifted up to fill the gap.


Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Spreadsheet IDYesText-Google Sheets spreadsheet ID
Sheet IDYesText-Numeric sheet ID
Start indexYesNumber-Zero-based start row index (inclusive)
End indexYesNumber-Zero-based end row index (exclusive)

Errors

  • Sheet not found – no sheet exists with the given ID
  • Invalid indices – start or end index is out of range

Tips

  • To delete a single row (e.g. row 5), use start=4, end=5
  • When deleting multiple rows in a loop, delete from bottom to top to avoid shifting issues

Related functions

  • Insert rows – Insert blank rows
  • Delete columns – Delete columns
  • Clear sheet range – Clear values without deleting rows

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.