{"record":{"id":"51e2a2e1aa24f657","repo":"alibaba/nacos","slug":"failed-to-delete-plugin-state-pluginid","errorCode":null,"errorMessage":"Failed to delete plugin state: {pluginId}","messagePattern":"Failed to delete plugin state: (.+?)","errorType":"exception","errorClass":"PluginPersistenceException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/com/alibaba/nacos/core/plugin/storage/FilePluginStatePersistenceImpl.java","lineNumber":199,"sourceCode":"        }\n    }\n    \n    /**\n     * Delete plugin state.\n     *\n     * @param pluginId plugin ID\n     */\n    @Override\n    public void deleteState(String pluginId) {\n        synchronized (stateLock) {\n            try {\n                Map<String, Boolean> states = loadAllStates();\n                states.remove(pluginId);\n                writeJsonToFile(PLUGIN_STATE_FILE, states);\n                LOGGER.debug(\"[FilePluginStatePersistenceImpl] Deleted plugin state for {}\",\n                    pluginId);\n            } catch (Exception e) {\n                throw new PluginPersistenceException(\"Failed to delete plugin state: \" + pluginId,\n                    e);\n            }\n        }\n    }\n    \n    /**\n     * Delete plugin configuration.\n     *\n     * @param pluginId plugin ID\n     */\n    @Override\n    public void deleteConfig(String pluginId) {\n        synchronized (configLock) {\n            try {\n                Map<String, Map<String, String>> configs = loadAllConfigs();\n                configs.remove(pluginId);\n                writeJsonToFile(PLUGIN_CONFIG_FILE, configs);\n                LOGGER.debug(\"[FilePluginStatePersistenceImpl] Deleted plugin config for {}\",","sourceCodeStart":181,"sourceCodeEnd":217,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/core/src/main/java/com/alibaba/nacos/core/plugin/storage/FilePluginStatePersistenceImpl.java#L181-L217","documentation":"Error \"Failed to delete plugin state: {pluginId}\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at core/src/main/java/com/alibaba/nacos/core/plugin/storage/FilePluginStatePersistenceImpl.java:199 when the library encounters an invalid state.","commonSituations":"Deleting a plugin state from disk failed.","solutions":["Inspect the server logs for the underlying cause, fix it, and retry the operation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b989acdf181d00898f2e8839257bb2b2a3cefe3","analyzedAt":"2026-08-14T07:17:31.569Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}