add die on error to idelete + query to delete from indexed file