Remove directory in external entities.