MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / DeleteInstance

Method DeleteInstance

api/client.go:261–266  ·  view source on GitHub ↗
(instanceID string)

Source from the content-addressed store, hash-verified

259}
260
261func (c *Client) DeleteInstance(instanceID string) (*DeleteInstanceResponse, error) {
262 if err := c.doRequest(context.Background(), "POST", fmt.Sprintf("/v1/instances/%s/delete", instanceID), nil, nil); err != nil {
263 return nil, err
264 }
265 return &DeleteInstanceResponse{Message: "Instance deleted successfully", Success: true}, nil
266}
267
268// ModifyInstance modifies an existing instance configuration.
269func (c *Client) ModifyInstance(instanceID string, req InstanceModifyRequest) (*InstanceModifyResponse, error) {

Callers 2

deleteInstanceCmdFunction · 0.80
runDeleteFunction · 0.80

Calls 1

doRequestMethod · 0.95

Tested by

no test coverage detected