add delete profile script
This commit is contained in:
parent
f02e5ca1a9
commit
85f505a4d7
21
dev-util/deleteWholeProfile.js
Normal file
21
dev-util/deleteWholeProfile.js
Normal file
@ -0,0 +1,21 @@
|
||||
#!usr/bin/env node
|
||||
|
||||
var email = process.argv[2];
|
||||
|
||||
if (!email) {
|
||||
console.log('\tdeleteWholeProfile.js <email>');
|
||||
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');
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user