4 var status = rs.status();
6 if (status.ok === 1 && status.set !== 'TroupeBetaProdData') {
7 throw new Error('This script can only be executed against TroupeBetaProdData');
10 print('removing push notification devices');
11 printjson(db.pushnotificationdevices.remove({}));
13 print('removing invitedEmail');
16 { invitedEmail: { $exists: true } },
17 { $unset: { invitedEmail: true } },
22 print('removing githubScopes');
26 githubScopes: { $exists: true }
28 { $set: { githubScopes: {} } },
33 print('removing githubUserToken');
37 githubUserToken: { $exists: true }
39 { $unset: { githubUserToken: true } },
44 print('removing githubToken');
48 githubToken: { $exists: true }
50 { $unset: { githubToken: true } },
55 print('removing identity secrets');
61 accessTokenSecret: true,