MCPcopy Index your code
hub / github.com/coder/coder / Delete

Method Delete

agent/agentcontainers/subagent.go:278–284  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

276}
277
278func (a *subAgentAPIClient) Delete(ctx context.Context, id uuid.UUID) error {
279 a.logger.Debug(ctx, "deleting sub agent", slog.F("id", id.String()))
280 _, err := a.api.DeleteSubAgent(ctx, &agentproto.DeleteSubAgentRequest{
281 Id: id[:],
282 })
283 return err
284}
285
286// noopSubAgentClient is a SubAgentClient that does nothing.
287type noopSubAgentClient struct{}

Callers

nothing calls this directly

Calls 2

DeleteSubAgentMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected