rm old api class