Delete makes a DELETE request to the Proxmox API with timeout.
(path string)
| 107 | |
| 108 | // Delete makes a DELETE request to the Proxmox API with timeout. |
| 109 | func (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. |
| 119 | func (c *Client) DeleteWithResponse(path string, result *map[string]interface{}) error { |