MCPcopy
hub / github.com/ZToolsCenter/ZTools / clearPluginData

Method clearPluginData

src/main/api/shared/database.ts:754–758  ·  view source on GitHub ↗

* 公共方法:清空指定插件的所有数据

(
    pluginName: string
  )

Source from the content-addressed store, hash-verified

752 * 公共方法:清空指定插件的所有数据
753 */
754 public async clearPluginData(
755 pluginName: string
756 ): Promise<{ success: boolean; deletedCount?: number; error?: string }> {
757 return await this._clearPluginData(pluginName)
758 }
759}
760
761export default new DatabaseAPI()

Callers 4

setupIPCMethod · 0.80
deletePluginMethod · 0.80
handleClearAllDataFunction · 0.80

Calls 1

_clearPluginDataMethod · 0.95

Tested by

no test coverage detected