> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Delete table

> Remove a native Google Sheets table.

`deleteTable` removes the table object identified by name or immutable ID.

## Example

```ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { deleteTable } from "automate.ax/google-sheets"

export default automation("Remove a staging table", () => {
  onHttpRequest({ scope: "automation" })

  deleteTable({ spreadsheet: "spreadsheet-id", table: "StagingTable" })
})
```

## Inputs

`spreadsheet` and `table` are required. `account` selects the Google account.

## Output

Returns the deleted table's `{ tableId, name, range, columns }` metadata.
Deleting a native table removes its table structure; it is distinct from
deleting the owning sheet.
