For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/sapi/service/functions/clearServiceModuleContext.md.
  • 简体中文
  • Function: clearServiceModuleContext()

    function clearServiceModuleContext(moduleId?: string): void;

    Defined in: sapi/service/client.ts:247

    清理当前模块的 service 身份上下文。

    Parameters

    ParameterTypeDescription
    moduleId?string若指定则仅删除该模块;省略则清空全部。

    Returns

    void