Clear values
clear_valuesClear cell contents and formulas from one or more A1 ranges in a single call while preserving formatting, data validation, notes, conditional formats, and merges.
Instructions
Empties the VALUES of one or more A1 ranges in a single call — cell contents and formulas are gone (no undo through the API), while formatting, data validation, notes, conditional formats and merges all stay. To also remove formatting use format_cells or raw_request; to delete whole rows/columns (not just their content) use manage_dimensions action=delete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ranges | Yes | The A1 ranges to clear. | |
| spreadsheet_id | Yes | The spreadsheet id — the long id from the URL (docs.google.com/spreadsheets/d/<spreadsheetId>/edit) or from create_spreadsheet / search_spreadsheets output. |