Deleting recipients in the database

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

bla2508
Posts: 8
Joined: Tue Aug 02, 2011 1:10 pm

Deleting recipients in the database

Post by bla2508 »

Hi i have a new question.

I want to delete all recipient off a mailinglist but in the documentation is only the option to delete recipients over the targetgroup.
But i have no target groups :D

When i delete only one recipient i only remove the dependency off the mailinglists and not the recipient in the database.

Now i search a mysql query to delete the recipients restless in the database but i only want to delete the recipients off one mailinglist.

Thanks for your help.
joris1
Posts: 3
Joined: Wed Jul 06, 2011 8:49 am

Re: Deleting recipients in the database

Post by joris1 »

Something like :

Code: Select all

delete FROM customer_1_tbl where customer_id not in (select customer_id from customer_1_binding_tbl);
Post Reply