Remove extra part of deldir function