MCPcopy
hub / github.com/burnash/gspread / clear

Method clear

gspread/worksheet.py:2209–2213  ·  view source on GitHub ↗

Clears all cells in the worksheet.

(self)

Source from the content-addressed store, hash-verified

2207 return self.delete_dimension(Dimension.cols, start_index, end_index)
2208
2209 def clear(self) -> JSONResponse:
2210 """Clears all cells in the worksheet."""
2211 return self.client.values_clear(
2212 self.spreadsheet_id, absolute_range_name(self.title)
2213 )
2214
2215 def batch_clear(self, ranges: Sequence[str]) -> JSONResponse:
2216 """Clears multiple ranges of cells with 1 API call.

Callers 2

reset_sheetMethod · 0.80
test_clearMethod · 0.80

Calls 2

absolute_range_nameFunction · 0.85
values_clearMethod · 0.45

Tested by 2

reset_sheetMethod · 0.64
test_clearMethod · 0.64