Endpoint Delete List
Name
delete_list
Description
Delete a specific list. [API reference]
Related Tables
Parameters
Parameter | Required | Options |
---|---|---|
Name:
Label: List Id The ID of the list which should be deleted. |
YES |
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
Id |
DT_WSTR
|
nvarchar(4000)
|
4000 | |
Status |
DT_WSTR
|
nvarchar(4000)
|
4000 | |
StatusCode |
DT_I4
|
int
|
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
Id |
DT_WSTR
|
nvarchar(4000)
|
4000 |
Examples
SSIS
Use Mailchimp Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Source
Required Parameters | |
---|---|
List Id | Fill-in the parameter... |
Optional Parameters | |
RawOutputDataRowTemplate | {} |
EnableRawOutputModeSingleRow | True |
ContineOnErrorForStatusCode | True |
ErrorStatusCodeToMatchRegex | 404|405 |

API Destination
This Endpoint belongs to the Lists table, therefore it is better to use it, instead of accessing the endpoint directly. Use this table and table-operation pair to delete list:
Required Parameters | |
---|---|
List Id | Fill-in the parameter... |
Optional Parameters | |
RawOutputDataRowTemplate | {} |
EnableRawOutputModeSingleRow | True |
ContineOnErrorForStatusCode | True |
ErrorStatusCodeToMatchRegex | 404|405 |

ODBC application
Use these SQL queries in your ODBC application data source:
Delete a list from Mailchimp account
DELETE FROM Lists
WHERE Id='e246f7e24d'
delete_list
endpoint belongs to
Lists
table(s), and can therefore be used via those table(s).
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Delete a list from Mailchimp account
DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Lists
WHERE Id=''e246f7e24d''';
EXEC (@MyQuery) AT [LS_TO_MAILCHIMP_IN_GATEWAY];
delete_list
endpoint belongs to
Lists
table(s), and can therefore be used via those table(s).