fix for when file does not exists and an attempt is made to delete