Skip to content

Google Sheets — Clear range

Type: googlesheets-clear-range  ·  Package: Google Sheets Activities v1.0.0

Deletes the content of a range of cells. Useful for cleaning up old data before writing new ones. Removes only the values, not the formatting (colors, borders).

Empty the cells of the range indicated on the sheet. Requires a Google Sheets — Open session.

ParameterEditorDescription
rangeexpressionRange to clear in A1 notation: A1:Z100, A:Z (full columns).
ParameterEditorDescription
sessionsessionGoogle Sheets — Open session. Optional: within a body it is inherited.
sheetexpressionSheet name. By default, it activates it.

Clean and rewrite a results sheet:

Google Sheets — Clear range session = = hoja sheet = "Resultados" range = "A2:Z1000"
Google Sheets — Write range session = = hoja sheet = "Resultados" range = "A2" values = = nuevos