Bulk deletion of lists

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Bulk deletion of lists

Postby spacejanitor » Thu Aug 09, 2012 7:54 pm

Hi all,

Wondering if there is some way to quickly delete a whole bunch of lists from ViciDial. We regularly add a list or two a day, so after a few months you can imagine what the database looks like.
I could just delete them manually through mySQL, but I'm thinking there would be some references or pointers from other tables that would be broken.
http://www.MarketResearchTechnology.com
We are the leading users of ViciDial, LimeSurvey and Drupal in the market research industry. We're also a lead provider- contact us.

Cluster Installation, ViciBox Server
VERSION: 2.6-372a
BUILD: 120713-2123
spacejanitor
 
Posts: 178
Joined: Tue Feb 08, 2011 3:31 pm

Re: Bulk deletion of lists

Postby williamconley » Thu Aug 09, 2012 8:42 pm

deleting the lists in sql does not delete the leads.

deleting the leads and the lists will eradicate them from the system completely ... but if you just want to "clean up the list display" but not lose the leads, you can delete them in sql and recreate them if you ever need them again. The leads will still appear in queries and searches, but will not be dialable (as there will not be a "lead" in the a "list" in a "campaign" ... the list link is missing).

Deleting them in Vicidial deletes the list and all leads in it. Deleting the list from SQL deletes the list but leaves the leads.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Bulk deletion of lists

Postby spacejanitor » Thu Aug 09, 2012 8:45 pm

Ahh understood. In this case i would like to delete both thr lists and leads. Is there a quick way to do that?
http://www.MarketResearchTechnology.com
We are the leading users of ViciDial, LimeSurvey and Drupal in the market research industry. We're also a lead provider- contact us.

Cluster Installation, ViciBox Server
VERSION: 2.6-372a
BUILD: 120713-2123
spacejanitor
 
Posts: 178
Joined: Tue Feb 08, 2011 3:31 pm

Re: Bulk deletion of lists

Postby williamconley » Thu Aug 09, 2012 9:19 pm

delete from vicidial_list where list_id IN ('xxxx','xxx','xxxx')

delete from vicidial_lists where list_id IN ('xxxx','xxx','xxxx')

beware: no "undo".

backup first!
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Bulk deletion of lists

Postby spacejanitor » Fri Aug 10, 2012 11:23 am

Thanks. Is this a verifiably safe way to delete them? ie, are those the SQL queries that are run when deleting through the GUI?
http://www.MarketResearchTechnology.com
We are the leading users of ViciDial, LimeSurvey and Drupal in the market research industry. We're also a lead provider- contact us.

Cluster Installation, ViciBox Server
VERSION: 2.6-372a
BUILD: 120713-2123
spacejanitor
 
Posts: 178
Joined: Tue Feb 08, 2011 3:31 pm

Re: Bulk deletion of lists

Postby williamconley » Sat Aug 11, 2012 10:56 am

there is no "safe way to delete". If you run the command properly it's always safe, but the word delete, if you make a mistake, can be deadly. Backup Before Beginning. LOL

You can also add "limit 1" to the end of each of those statements and "observe" the results (ie: is one of them missing?). At least the damage is contained ... but mostly it's about understanding mysql and the "where" clause which will limit the records affected.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Bulk deletion of lists

Postby Acidshock » Tue Aug 21, 2012 6:02 pm

Dont forget custom fields!
VERSION: 2.14-698a | BUILD: 190207-2301 | Asterisk:13.24.1-vici | Vicibox 8.1.2
Acidshock
 
Posts: 430
Joined: Wed Mar 03, 2010 3:19 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 101 guests