Delete thread.js