var glob = require("glob") // options is optional glob("**/profile-photo-*.png", options, function (er, files) { for (const file of files) { // remove file } })