addded a delete on success parameter

addded a delete on success parameter so that files which are successfully uploaded won't get moved to success/ but deleted instead when parameter '-d' is set.