Reference

Endpoint Delete List


Name

delete_list

Description

Delete a specific list. [API reference]

Related Tables

Lists

Parameters

Parameter Required Options
Name: Id

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
If the column you are looking for is missing, consider customizing Mailchimp Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
Id DT_WSTR nvarchar(4000) 4000
Required columns that you need to supply are bolded.

Examples

SSIS

Use Mailchimp Connector in API Source or in API Destination SSIS Data Flow components to read or write data.

API Source

API Source - Mailchimp
Read / write MailChimp Campaigns, Lists, Members, Reports and more in without coding.
Mailchimp
Delete List
Required Parameters
List Id Fill-in the parameter...
Optional Parameters
RawOutputDataRowTemplate {}
EnableRawOutputModeSingleRow True
ContineOnErrorForStatusCode True
ErrorStatusCodeToMatchRegex 404|405
SSIS API Source - Read from table or endpoint

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:

API Destination - Mailchimp
Read / write MailChimp Campaigns, Lists, Members, Reports and more in without coding.
Mailchimp
Lists
Delete
Required Parameters
List Id Fill-in the parameter...
Optional Parameters
RawOutputDataRowTemplate {}
EnableRawOutputModeSingleRow True
ContineOnErrorForStatusCode True
ErrorStatusCodeToMatchRegex 404|405
SSIS API Destination - Access table operation

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).