From 85f505a4d73f0fd167ff57b2d0ea8cf820cfd375 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 13 Nov 2014 18:43:40 -0300 Subject: [PATCH] add delete profile script --- {util => dev-util}/dbdump.js | 0 dev-util/deleteWholeProfile.js | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+) rename {util => dev-util}/dbdump.js (100%) create mode 100644 dev-util/deleteWholeProfile.js diff --git a/util/dbdump.js b/dev-util/dbdump.js similarity index 100% rename from util/dbdump.js rename to dev-util/dbdump.js diff --git a/dev-util/deleteWholeProfile.js b/dev-util/deleteWholeProfile.js new file mode 100644 index 0000000..3689309 --- /dev/null +++ b/dev-util/deleteWholeProfile.js @@ -0,0 +1,21 @@ +#!usr/bin/env node + +var email = process.argv[2]; + +if (!email) { + console.log('\tdeleteWholeProfile.js '); + process.exit(-1); +} + +console.log('\t Deleting email:', email, process.env.INSIGHT_NETWORK); + +var p = require('../plugins/emailstore'); + +p.init({}); + +p.deleteWholeProfile(email, function(err) { + if (err) + console.log('[err:]', err); + else + console.log('done'); +});