rm check directory