{"record":{"id":"c70735ac96db8901","repo":"zeroclaw-labs/zeroclaw","slug":"cli-alias-delete-failed","errorCode":"cli-alias-delete-failed","errorMessage":"delete failed: {$error}","messagePattern":"delete failed: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/alias_cli/mod.rs","lineNumber":279,"sourceCode":"            bail!(\n                \"{}\",\n                mt(\n                    \"cli-alias-delete-refused-hint\",\n                    \"delete refused — resolve the hard references first\"\n                )\n            );\n        }\n        Err(CascadeError::NotFound(p)) => bail!(\n            \"{}\",\n            mta(\n                \"cli-alias-not-configured\",\n                &[(\"path\", p.as_str())],\n                \"{$path} is not configured\"\n            )\n        ),\n        Err(e) => {\n            let es = e.to_string();\n            bail!(\n                \"{}\",\n                mta(\n                    \"cli-alias-delete-failed\",\n                    &[(\"error\", es.as_str())],\n                    \"delete failed: {$error}\"\n                )\n            )\n        }\n    }\n}\n\n/// Rename an aliased entry's config references (config-layer only).\nfn rename_config(config: &mut Config, kind: &AliasKind, from: &str, to: &str) -> Result<()> {\n    match alias_refs::rename_with_cascade(config, kind, from, to) {\n        Ok(report) => {\n            for path in &report.dirty_paths {\n                config.mark_dirty(path);\n            }","sourceCodeStart":261,"sourceCodeEnd":297,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/src/alias_cli/mod.rs#L261-L297","documentation":"Error \"delete failed: {$error}\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at src/alias_cli/mod.rs:279 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the reported error, fix the underlying cause (permissions, missing file, invalid state), and retry the delete.","Edit ~/.zeroclaw/config.toml directly to remove the entry if the CLI delete keeps failing."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}