multica-ai/multica · error
cannot delete runtime profile %s: %s
Error message
cannot delete runtime profile %s: %s
What it means
Error "cannot delete runtime profile %s: %s" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_runtime_profile.go:281
if err != nil {
return err
}
ctx, cancel := cli.APIContext(context.Background())
defer cancel()
path := runtimeProfilesPath(workspaceID) + "/" + profileID
if err := client.DeleteJSON(ctx, path); err != nil {
// 409 means the server refused because active agents are still bound
// to this profile. Surface the server's explanation verbatim rather
// than the generic HTTP wrapper so the user sees what to unbind.
var httpErr *cli.HTTPError
if errors.As(err, &httpErr) && httpErr.StatusCode == http.StatusConflict {
msg := strings.TrimSpace(httpErr.Body)
if msg == "" {
msg = "profile still has active agents bound to it"
}
return fmt.Errorf("cannot delete runtime profile %s: %s", profileID, msg)
}
return fmt.Errorf("delete runtime profile: %w", err)
}
fmt.Printf("Deleted runtime profile %s\n", profileID)
return nil
}
func runRuntimeProfileSetPath(cmd *cobra.Command, args []string) error {
if err := requireHumanLocalCommand("runtime profile set-path"); err != nil {
return err
}
profileID := args[0]
path, _ := cmd.Flags().GetString("path")
path = strings.TrimSpace(path)
if path == "" {
return fmt.Errorf("--path is required")
}
if !filepath.IsAbs(path) {View on GitHub (pinned to 2c0912b6ec)
Solutions
- Resolve the reason given in the message (e.g. agents bound to the profile) before deleting.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_runtime_profile.go:281 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/b35d80480b3f0b06.
Report an issue: GitHub.