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

    function clearServiceModuleContext(moduleId?: string): void;

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

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

    Parameters

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

    Returns

    void