MCPcopy Create free account
hub / github.com/OpenCSGs/csghub-server / Delete

Method Delete

component/space_sdk.go:84–97  ·  view source on GitHub ↗
(ctx context.Context, id int64)

Source from the content-addressed store, hash-verified

82}
83
84func (c *SpaceSdkComponent) Delete(ctx context.Context, id int64) error {
85 ss, err := c.sss.FindByID(ctx, id)
86 if err != nil {
87 slog.Error("error finding space sdk", slog.Any("error", err))
88 return err
89 }
90
91 err = c.sss.Delete(ctx, *ss)
92 if err != nil {
93 slog.Error("error deleting space sdk", slog.Any("error", err))
94 return err
95 }
96 return nil
97}

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.80
FindByIDMethod · 0.45

Tested by

no test coverage detected