Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Account address (URL)StringNoYour Snowflake account address, e.g. https://myorg-myaccount.snowflakecomputing.com.
Table nameStringYesTable, written as DATABASE.SCHEMA.TABLE (or just TABLE with database and schema set).
Key columnStringYesColumn that identifies a row.
Key valuesListYesKey values of the rows to delete.
WarehouseStringNoWarehouse that runs the query. Leave empty for the user's default warehouse.
DatabaseStringNoDatabase of the table when table_name has no database.
SchemaStringNoSchema of the table when table_name has no schema.
RoleStringNoRole to run as. Leave empty for the user's default role.
TokenCredentialNoAccess 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 typeStringNoOAUTHKind of token in the vault: OAUTH, KEYPAIR_JWT or PROGRAMMATIC_ACCESS_TOKEN.

Outputs​

OutputTypeWhat it is
rows_changedNumberRows deleted.