You are here

public function MailchimpCampaigns::delete in Mailchimp 8

Deletes a Mailchimp campaign.

Parameters

string $campaign_id: The ID of the campaign.

Return value

object

See also

http://developer.mailchimp.com/documentation/mailchimp/reference/campaig...

File

lib/mailchimp-api-php/src/MailchimpCampaigns.php, line 287

Class

MailchimpCampaigns
Mailchimp Campaigns library.

Namespace

Mailchimp

Code

public function delete($campaign_id) {
  $tokens = [
    'campaign_id' => $campaign_id,
  ];
  return $this
    ->request('DELETE', '/campaigns/{campaign_id}', $tokens);
}