MCPcopy Create free account
hub / github.com/bcspragu/logseq-sync / deleteGraph

Method deleteGraph

cmd/server/main.go:538–546  ·  view source on GitHub ↗
(ctx context.Context, req *deleteGraphRequest)

Source from the content-addressed store, hash-verified

536}
537
538func (s *server) deleteGraph(ctx context.Context, req *deleteGraphRequest) (*deleteGraphResponse, error) {
539 gID := db.GraphID(req.GraphUUID)
540
541 if err := s.db.DeleteGraph(ctx, gID); err != nil {
542 return nil, httperr.Internal("failed to delete graph: %w", err)
543 }
544
545 return &deleteGraphResponse{}, nil
546}
547
548type getGraphEncryptKeysRequest struct {
549 GraphUUID string `json:"GraphUUID"`

Callers

nothing calls this directly

Calls 3

GraphIDTypeAlias · 0.92
InternalFunction · 0.92
DeleteGraphMethod · 0.65

Tested by

no test coverage detected