(pluginId: string)
| 166 | * deletePluginOptions (pluginOptionsStorage.ts). |
| 167 | */ |
| 168 | export 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 |
no test coverage detected