MCPcopy
hub / github.com/cloudreve/cloudreve / Delete

Method Delete

inventory/node.go:71–73  ·  view source on GitHub ↗
(ctx context.Context, id int)

Source from the content-addressed store, hash-verified

69}
70
71func (c *nodeClient) Delete(ctx context.Context, id int) error {
72 return c.client.Node.DeleteOneID(id).Exec(ctx)
73}
74
75func (c *nodeClient) ListNodes(ctx context.Context, args *ListNodeParameters) (*ListNodeResult, error) {
76 query := c.client.Node.Query()

Callers

nothing calls this directly

Calls 2

ExecMethod · 0.65
DeleteOneIDMethod · 0.45

Tested by

no test coverage detected