file deleting with correct callback