delete function from glob.js