MCPcopy Index your code
hub / github.com/codeaashu/claude-code / deletePluginDataDir

Function deletePluginDataDir

src/utils/plugins/pluginDirectories.ts:168–178  ·  view source on GitHub ↗
(pluginId: string)

Source from the content-addressed store, hash-verified

166 * deletePluginOptions (pluginOptionsStorage.ts).
167 */
168export async function deletePluginDataDir(pluginId: string): Promise<void> {
169 const dir = pluginDataDirPath(pluginId)
170 try {
171 await rm(dir, { recursive: true, force: true })
172 } catch (e) {
173 logForDebugging(
174 `Failed to delete plugin data dir ${dir}: ${errorMessage(e)}`,
175 { level: 'warn' },
176 )
177 }
178}
179

Callers 2

removeMarketplaceSourceFunction · 0.85
uninstallPluginOpFunction · 0.85

Calls 4

pluginDataDirPathFunction · 0.85
rmFunction · 0.85
logForDebuggingFunction · 0.85
errorMessageFunction · 0.50

Tested by

no test coverage detected