---
title: "Batch clears values from multiple ranges in a Google Sheet."
method: POST
path: "/batchClearValues"
---

# Batch clears values from multiple ranges in a Google Sheet.

`POST /batchClearValues`

This function clears all values from multiple specified ranges in a Google Sheet using a single batch request. It takes the sheet ID and an array of A1 notations for the ranges to be cleared, and returns a promise that resolves to an object containing information about the clear operation.

## Request body

- object
  - `body` object — Body of the batchClearValues sls call
    - `arguments` unknown[], required
      - unknown
    - `auth` object — Authentication object
      - `strategy` 'oauth2' — Authentication strategy
      - `variables` unknown[] — Variables for the authentication strategy
        - unknown
    - `packageName` string — @microfox/google-sheets

## Response `200`

Successful operation

- object
  - `spreadsheetId` string — The ID of the spreadsheet that was modified
  - `clearedRanges` string[] — The ranges that were cleared

## Other responses

- `400` — Bad Request - Invalid input parameters
- `403` — Forbidden - Insufficient permissions to access the sheet
- `404` — Not Found - Sheet or specified ranges not found
- `500` — Internal Server Error

## Changes

- **2025-05-29** `470b95f73df9` — 2 info
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
- **2025-05-28** `77260ff78232` — 2 info
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `404`

[Change history](https://skmtc.dev/microfox-ai/apis/google-sheets-sdk-api/changes/batchClearValues/post.md)

---

[API](https://skmtc.dev/microfox-ai/apis/google-sheets-sdk-api.md) · [All operations](https://skmtc.dev/microfox-ai/apis/google-sheets-sdk-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microfox-ai/google-sheets-sdk-api/revisions/85db428f2808/schema)
