fixed bug in delete_output not saving input folder