Redshift - Delete

Redshift - Delete

This page is no longer maintained (May 13, 2026). For the most current information, go to Redshift - Delete.


In this article

Snap Type:

Write

Description:

This Snap executes a SQL delete with the given properties.

ETL Transformations & Data Flow

This Snap enables the following ETL operations/flows:

Snap will delete all the records from the input table when there is no WHERE clause in the Delete condition provided or it will delete only the specific records matching with the WHERE clause provided in the properties.

Input & Output

  • Input: This Snap can have an upstream Snap that can pass a document output view. Such as Structure or JSON Generator.

  • Output: The Snap outputs one document specifying the status as success, along with the count of records that are being deleted from the table. Any error occuring during the process is routed to the error view.

 

Prerequisites:

None.

Limitations and Known Issues:

Works in Ultra Tasks.

Configurations:

Account and Access

This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. See Redshift Account for information on setting up this type of account.

Views

Input

This Snap has exactly one input view. 

Output

This Snap has no output views.

Error

This Snap has at most one error view and produces zero or more documents in the view.

Troubleshooting:

None at this moment

Settings

Label

 

Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline.

Schema name

The database schema name. Selecting a schema filters the Table name list to show only those tables within the selected schema. The property is suggestible and will retrieve available database schemas during suggest values.

The values can be passed using the pipeline parameters but not the upstream parameter.

Table name

 

Required. Table name to execute the delete on,

The values can be passed using the pipeline parameters but not the upstream parameter.


Example: people

Delete condition (deletes all records from table if left blank)

This is an expression property to specify the SQL WHERE clause of the delete statement. The delete condition may also be passed via an upstream Snap or through the pipeline parameters.

Specify a valid WHERE clause for the delete condition. If you leave this field blank, the Snap deletes all the records from the table.

Examples

Without using expressions

Using expressions

  • "EMPNO=$EMPNO and ENAME=$EMPNAME"

  • email = $email 

  • emp=$emp

  • "emp='" + $emp + "'"

  • "EMPNO=" + $EMPNO + " and ENAME='" + $EMPNAME+ "'"

Caution

Using expressions that join strings together to create SQL queries or conditions has a potential SQL injection risk and is hence unsafe. Ensure that you understand all implications and risks involved before using concatenation of strings with '=' Expression enabled.

 

Default value:  [None]

Number of retries

Specifies the maximum number of attempts to be made to receive a response. The request is terminated if the attempts do not result in a response.

Example: 3

Default value: 0

Retry interval (seconds)

Specifies the time interval between two successive retry requests. A retry happens only when the previous attempt resulted in an exception. 

Example:  10

Default value: 1

Troubleshooting