Skip to main content
clearValues removes cell contents while preserving formatting, validation, comments, and other cell properties.

Example

Inputs

spreadsheet and one A1/named range or non-empty ranges array are required. account selects the Google account.

Output

Returns { spreadsheetId: string; clearedRanges: string[] }; Google bounds unbounded input ranges to the actual cleared grid. This does not delete or shift rows.