Skip to contentSkip to navigationSkip to topbar
On this page

Stopping an in-progress send


(error)

Danger

If you are looking for information on how to cancel a scheduled email or campaign, see Canceling a Scheduled Send.


Stopping Transactional Email

stopping-transactional-email page anchor

Stopping an ongoing send that is using SMTP or the Web API can be tricky, because we strive to accept and send email requests as quickly as possible. Sometimes stopping an accidental send is not possible. However, following are several suggestions for how to halt a send in progress or a send that you have scheduled.

1. Change Your API Key or Password

1-change-your-api-key-or-password page anchor

Changing your API key(link takes you to an external page) or password(link takes you to an external page) can break your existing email integration by causing a mismatch between what your app is trying to authenticate with and what SendGrid has on record.

This method is great if you have a runaway script or have just started a send accidentally. Be sure to verify that the credentials your app is using belong either to the parent account or a teammate(link takes you to an external page) so you can change the proper one.

Using an API key has the added benefit of breaking only the services for which the key has permissions. In addition to enhanced security, the ease of change afforded by an API key is one reason we recommend using API keys to authenticate with our services.

(error)

Danger

We cannot guarantee that changing your API key or password will prevent 100% of your email requests from being delivered. We only recommend this method as a last resort that may allow you to stop at least some of your emails from being sent.

SendGrid Support(link takes you to an external page) has the ability to clear any emails currently pending delivery from your account. There is a very small window of opportunity between when we accept an email request and when we actually attempt delivery to the recipient. Emails can build up in this queue, and upon request, Support can delete them entirely.


Stopping a Marketing Campaign

stopping-a-marketing-campaign page anchor

You have several options for canceling or unscheduling a campaign.

Using the User Interface

using-the-user-interface page anchor

If you have Send Immediately under the Scheduling dropdown menu in the campaign builder set to OFF, then you only have a very brief window of opportunity to cancel the campaign after clicking Send Campaign. You have 2 options:

  1. Deleting the Campaign

    Navigate to your Campaigns page(link takes you to an external page). Find the campaign you want to stop, click the action menu and select Delete.

  2. Canceling the Campaign

    Navigate to your Campaigns page(link takes you to an external page). Find the campaign you want to stop and click the little red X next to the campaign name to cancel the campaign. Click Confirm in the confirmation window that appears. You'll see the status of your campaign change to "Canceled".

    Find campaign.

    Cancel campaign.

    Status change.

New Marketing Campaigns

new-marketing-campaigns page anchor

You can cancel a scheduled send(link takes you to an external page) by making a call to /marketing/singlesends/{id}/schedule where {id} is the ID of the Single Send you want to stop. A successful deletion will return a 200.

Legacy Marketing Campaigns

legacy-marketing-campaigns page anchor

You can delete a campaign(link takes you to an external page) by making a call to /v3/campaigns/{campaign_id} where {campaign_id} is the ID of the campaign you want to stop. A successful deletion will return a 204.

DELETE https://api.sendgrid.com/v3/campaigns/{campaign_id}

HTTP/1.1 204

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.