update outputdir
update for delete