diff --git a/proxmox/virtual_environment_client.go b/proxmox/virtual_environment_client.go index deaa41f5..9d0dfc8d 100644 --- a/proxmox/virtual_environment_client.go +++ b/proxmox/virtual_environment_client.go @@ -91,7 +91,7 @@ func (c *VirtualEnvironmentClient) DoRequest(method, path string, requestBody in encodedValues := v.Encode() if encodedValues != "" { - if method == hmGET || method == hmHEAD { + if method == hmDELETE || method == hmGET || method == hmHEAD { if !strings.Contains(modifiedPath, "?") { modifiedPath = fmt.Sprintf("%s?%s", modifiedPath, encodedValues) } else {