added delete flag, but still have unknown problems with shaded commons-io dependency