{"size": 669, "ext": "js", "max_stars_repo_path": "docs/prune.js", "max_stars_repo_name": "vingkan/prometheus", "max_stars_repo_stars_event_min_datetime": "2016-03-04T04:44:03.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-01T06:04:44.000Z", "max_issues_repo_path": "docs/prune.js", "max_issues_repo_name": "vingkan/prometheus", "max_issues_repo_issues_event_min_datetime": "2016-04-15T17:26:30.000Z", "max_issues_repo_issues_event_max_datetime": "2016-08-04T05:31:10.000Z", "max_forks_repo_path": "docs/prune.js", "max_forks_repo_name": "vingkan/prometheus", "max_forks_repo_forks_event_min_datetime": "2016-03-14T20:31:03.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-01T06:04:48.000Z"}
{"max_stars_count": 22, "max_issues_count": 24, "max_forks_count": 9, "avg_line_length": 33.45, "max_line_length": 77, "alphanum_fraction": 0.7130044843}
var targetConfig = {
	apiKey: "AIzaSyBXXQFcl6qtakmkFeh0jzy_jjjIDpb1DlY",
    authDomain: "prometheusjs.firebaseapp.com",
    databaseURL: "https://prometheusjs.firebaseio.com",
    storageBucket: "firebase-prometheusjs.appspot.com",
    messagingSenderId: "433905102741"
};

var targetFirebase = firebase.initializeApp(targetConfig, 'Target Firebase');
var db = targetFirebase.database();

db.ref('prometheus/users').once('value', function(usersSnap){
	var allUsers = usersSnap.val();
	for(var u in allUsers){
		if(allUsers[u]){
			console.log('Removed visits at: prometheus/users/' + u + '/visits');
			db.ref('prometheus/users/' + u + '/visits').remove();	
		}
	}
});