updates to delete.js