Bug 1021569 - rewrite clear-stage-app in javascript

If we still need utils-node, I would suggest we can have this function in utils.js and define "remove" function in getFile of utils-node.js.