api_generator: rename clearAllProperties