cleanup in realdir