Delete rows by key
Delete the rows of a table whose key column has one of the values given; the values are sent apart from the SQL (G6).
Command in the Snowflake toolkit · id ooa.snowflake/delete_rows · 10 inputs (3 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Account address (URL) | String | No | Your Snowflake account address, e.g. https://myorg-myaccount.snowflakecomputing.com. | |
| Table name | String | Yes | Table, written as DATABASE.SCHEMA.TABLE (or just TABLE with database and schema set). | |
| Key column | String | Yes | Column that identifies a row. | |
| Key values | List | Yes | Key values of the rows to delete. | |
| Warehouse | String | No | Warehouse that runs the query. Leave empty for the user's default warehouse. | |
| Database | String | No | Database of the table when table_name has no database. | |
| Schema | String | No | Schema of the table when table_name has no schema. | |
| Role | String | No | Role to run as. Leave empty for the user's default role. | |
| Token | Credential | No | Access token from the vault: an OAuth token, a key-pair JWT or a programmatic access token. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Token type | String | No | OAUTH | Kind of token in the vault: OAUTH, KEYPAIR_JWT or PROGRAMMATIC_ACCESS_TOKEN. |
Outputs
| Output | Type | What it is |
|---|---|---|
| rows_changed | Number | Rows deleted. |