add die on error to idelete + query to delete from indexed file . ready to merge and deploy