MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / Uninstall

Method Uninstall

internal/desktop/entity_service.go:68–81  ·  view source on GitHub ↗
(kind, name string)

Source from the content-addressed store, hash-verified

66}
67
68func (s *EntityService) Uninstall(kind, name string) (OperationResult, error) {
69 store, err := entityStore(kind)
70 if err != nil {
71 return OperationResult{}, err
72 }
73 removed, err := store.Delete(name)
74 if err != nil {
75 return OperationResult{}, wrapError("ENTITY_DELETE_FAILED", err)
76 }
77 if !removed {
78 return OperationResult{}, NewError("ENTITY_NOT_FOUND", "entity not found", map[string]string{"kind": kind, "name": name})
79 }
80 return OperationResult{OK: true, Message: "entity removed", Path: store.Path()}, nil
81}
82
83func (s *EntityService) Install(kind string, input EntityDTO) (EntityDTO, error) {
84 return s.Save(kind, input)

Callers 1

Calls 5

entityStoreFunction · 0.85
wrapErrorFunction · 0.85
NewErrorFunction · 0.85
DeleteMethod · 0.45
PathMethod · 0.45

Tested by 1