# Hermoso: clear_sheet_range: Clear a range · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/files/clear_sheet_range/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Files & documents](https://hermoso.ai/docs/reference/files/) / clear_sheet_range

# `clear_sheet_range`

Clear a range in a Google Sheet destructive

Area: The Sheets / Docs WRITE surface · [Files & documents](https://hermoso.ai/docs/reference/files/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Empty a range of cells in a Google Sheet, leaving the rows themselves in place. DESTRUCTIVE: call it WITHOUT confirm first and nothing is cleared — you get back the real number of filled cells in that exact range. Show the user that number, get an unambiguous yes, then call again with confirm:true AND confirmCells set to it. The echo is not ceremony: it is what catches naming A1:Z1000 when you meant A1:Z10, which is the mistake that actually happens. There is deliberately NO default range. The clear is read back and reported as confirmed only if the range really is empty afterwards. To remove a whole tab instead, use manage_sheet_tabs.

## Parameters

Parameter Type Description

`spreadsheetId` `string` Google spreadsheet id; use this or sheetUrl

`sheetUrl` `string` Google Sheets link, instead of spreadsheetId

`range` required `string` the range to clear, e.g. "A2:D50" or "Sheet1!A2:D50"

`confirm` `boolean` true clears the range; call without it first to get the filled-cell count

`confirmCells` `number` echo back the filled-cell count the unconfirmed call reported

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/clear_sheet_range`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"clear_sheet_range","arguments":{"range":"<string>"}}}`
**CLI**

`hermoso call clear_sheet_range --json '{"range":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [manage_sheet_tabs](https://hermoso.ai/docs/reference/files/manage_sheet_tabs/) Add, rename or delete a sheet tab
- [update_sheet](https://hermoso.ai/docs/reference/files/update_sheet/) Write to a range in a Google Sheet
- [list_sheet_tabs](https://hermoso.ai/docs/reference/files/list_sheet_tabs/) List the tabs in a Google Sheet
- [format_sheet](https://hermoso.ai/docs/reference/files/format_sheet/) Format a Google Sheet
- [update_doc](https://hermoso.ai/docs/reference/files/update_doc/) Edit a Google Doc in place

[All 37 Files & documents tools](https://hermoso.ai/docs/reference/files/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
