Google Sheets · Arazzo Workflow

Google Sheets Archive and Clear Multiple Ranges

Version 1.0.0

Read several ranges as an archive, clear them all in one batch, then re-read to confirm they are empty.

1 workflow 1 source API 1 provider
View Spec View on GitHub Google WorkspaceProductivitySpreadsheetsArazzoWorkflows

Provider

google-sheets

Workflows

archive-and-clear-multiple-ranges
Snapshot several ranges, clear them all, and confirm they are empty.
Reads several ranges as an archive, clears them all in one batchClear, and re-reads them to confirm they were cleared.
3 steps inputs: accessToken, ranges, spreadsheetId outputs: archivedValueRanges, clearedRanges, remainingValueRanges
1
archive
Read all of the supplied ranges together as an archive snapshot.
2
clearAll
Clear every supplied range in a single batchClear call.
3
confirmEmpty
Re-read the ranges to confirm they no longer hold values.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Google Sheets Archive and Clear Multiple Ranges
  summary: Read several ranges as an archive, clear them all in one batch, then re-read to confirm they are empty.
  description: >-
    A bulk reset flow that preserves a snapshot before wiping data. The workflow
    reads several ranges together as an archive snapshot, clears all of those
    ranges in a single batchClear, and then re-reads them to confirm the cells
    are now empty. Every step spells out its request inline so the flow can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: valuesApi
  url: ../openapi/google-sheets-values-api-openapi.yml
  type: openapi
workflows:
- workflowId: archive-and-clear-multiple-ranges
  summary: Snapshot several ranges, clear them all, and confirm they are empty.
  description: >-
    Reads several ranges as an archive, clears them all in one batchClear, and
    re-reads them to confirm they were cleared.
  inputs:
    type: object
    required:
    - accessToken
    - spreadsheetId
    - ranges
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer access token with the spreadsheets scope.
      spreadsheetId:
        type: string
        description: The ID of the spreadsheet whose ranges should be archived and cleared.
      ranges:
        type: array
        description: The A1 notation ranges to snapshot, clear, and re-check.
        items:
          type: string
  steps:
  - stepId: archive
    description: Read all of the supplied ranges together as an archive snapshot.
    operationId: batchGetValues
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: spreadsheetId
      in: path
      value: $inputs.spreadsheetId
    - name: ranges
      in: query
      value: $inputs.ranges
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      archivedValueRanges: $response.body#/valueRanges
  - stepId: clearAll
    description: Clear every supplied range in a single batchClear call.
    operationId: batchClearValues
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: spreadsheetId
      in: path
      value: $inputs.spreadsheetId
    requestBody:
      contentType: application/json
      payload:
        ranges: $inputs.ranges
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      clearedRanges: $response.body#/clearedRanges
  - stepId: confirmEmpty
    description: Re-read the ranges to confirm they no longer hold values.
    operationId: batchGetValues
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: spreadsheetId
      in: path
      value: $inputs.spreadsheetId
    - name: ranges
      in: query
      value: $inputs.ranges
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      remainingValueRanges: $response.body#/valueRanges
  outputs:
    archivedValueRanges: $steps.archive.outputs.archivedValueRanges
    clearedRanges: $steps.clearAll.outputs.clearedRanges
    remainingValueRanges: $steps.confirmEmpty.outputs.remainingValueRanges

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/google-sheets-archive-and-clear-multiple-ranges-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.