MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / Delete

Method Delete

pkg/api/client.go:109–116  ·  view source on GitHub ↗

Delete makes a DELETE request to the Proxmox API with timeout.

(path string)

Source from the content-addressed store, hash-verified

107
108// Delete makes a DELETE request to the Proxmox API with timeout.
109func (c *Client) Delete(path string) error {
110 ctx, cancel := context.WithTimeout(context.Background(), DefaultAPITimeout)
111 defer cancel()
112
113 c.logger.Debug("API DELETE: %s", path)
114
115 return c.httpClient.Delete(ctx, path, nil)
116}
117
118// DeleteWithResponse makes a DELETE request to the Proxmox API and returns the response with timeout.
119func (c *Client) DeleteWithResponse(path string, result *map[string]interface{}) error {

Callers 1

StopTaskMethod · 0.95

Calls 2

DebugMethod · 0.65
DeleteMethod · 0.65

Tested by

no test coverage detected