multica-ai/multica · error

delete runtime profile: %w

Error message

delete runtime profile: %w

What it means

Error "delete runtime profile: %w" thrown in multica-ai/multica.

Source

Thrown at server/cmd/multica/cmd_runtime_profile.go:283

	}

	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) {
		return fmt.Errorf("--path must be an absolute path, got %q", path)
	}

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Check the server response for details and retry deleting the profile.

When it happens

Trigger: Thrown at server/cmd/multica/cmd_runtime_profile.go:283 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/d42a7f314bb0ebd3. Report an issue: GitHub.