Use proper function to delete directory