/** * Clears the user's attachment cache directory * * @param ServiceBase $api The service base * @param array $args The request args * @return bool * @throws SugarApiExceptionRequestMethodFailure */ public function clearUserCache($api, $args) { $em = new EmailUI(); $em->preflightUserCache(); return true; }