Skip to main content

$integration.googleSheets.clearCellData

The method allows clearing specific cells or ranges of cells from a spreadsheet.

Syntax

The method accepts 4 required arguments.

ArgumentDescriptionType
integrationIdIntegration identifierString
spreadsheetIdGoogle spreadsheet identifierString
sheetNameThe name of the necessary sheetString
valuesThe cells to be clearedArray of objects

An example of calling the method:

$integration.googleSheets.clearCellData(
"5a9f649c-bdc4-4805-92c4-7bed80f7c285",
"1OysnSRFIBTWgVWEX1wYndSLgSZ3umznXR96v0vTh8Hg",
"Sheet2",
["B6", "E6"]
);

Action

The method allows clearing specific cells or ranges of cells in the necessary spreadsheet.

tip
When clearing the cells, the lines and the columns are not deleted or moved.

You can clear several cells or their ranges at a time.

Example

In the example below, we clear several cells in a spreadsheet.