How to automatically delete bounced subscribers

If you prefer to remove bounced subscribers from your database, you can have Noptin delete their records automatically when their status changes to Bounced. You can delete them without a delay or keep them for a while, such as 30 days, so you have time to review them first.

This uses a subscriber automation rule. If you want your email sending service to mark failed addresses as bounced automatically, configure bounce handling separately.

Deleting a subscriber permanently removes their record and associated email logs. You do not need to delete bounced subscribers to stop emailing them: Noptin already excludes them from campaigns targeting active subscribers. You can view bounced subscribers and keep their records instead.

Create the bounced-subscriber automation

  1. Open Noptin > Automation Rules and click Add New Automation.
  2. Search for Bounced and select Subscriber > Bounced as the trigger. This tells Noptin to start the automation when a subscriber’s status changes to bounced.
Noptin subscriber bounced trigger
  1. Skip when asked to select the previous status. We want this automation rule to run regardless of a subscriber’s previous status.
Noptin subscriber rule select previous status
  1. Next, select Subscriber > Delete as the action.
Noptin subscriber delete rule action
  1. Enter [[email]] in the delete action’s Subscriber ID or email address field. Noptin replaces it with the bounced subscriber’s email address.
Noptin set subscriber id or email address
  1. Noptin will open the automation rule in the editor. You can set an optional delay and conditional logic.
Delete bounced subscribers automation rule
  1. Click Activate when the rule is ready. Use Save Draft if you want to keep it inactive while you finish setting it up.

The active rule applies to future status changes, including changes you make manually. Activating it does not delete subscribers who were already marked as bounced.

Automation rule JSON

Here’s a sample automation rule’s JSON for your reference. You can import it into the automation rule editor instead of creating everything from scratch.

{
  "workflow_name": "Auto-delete bounced subscribers",
  "trigger_id": "noptin_subscriber_status_set_to_bounced",
  "root": {
    "action_id": "delete_subscriber",
    "action_settings": {
      "email": "[[email]]"
    },
    "trigger_settings": {},
    "delay": 604800,
    "status": false,
    "priority": 0,
    "children": []
  }
}

Test with a disposable subscriber

Use a test subscriber whose record you are happy to delete. To test a delayed rule quickly, temporarily use a short delay, such as 60 seconds.

  1. Confirm that the automation is active, then open Noptin > Subscribers.
  2. Open a disposable subscriber whose status is not already Bounced. Change their status to Bounced and save the record.
  3. After the delay and the next background run, check that the subscriber has been removed. Use the automation’s run history to inspect the result.

Related Guides