for (var variableKey in vartoClear){ if (vartoClear.hasOwnProperty(variableKey)){ delete vartoClear[variableKey]; } }