diff --git a/client.go b/client.go index 3c665c3..fc23a45 100644 --- a/client.go +++ b/client.go @@ -192,7 +192,7 @@ func (c *Client) RemoveAll(path string) error { } rs.Body.Close() - if rs.StatusCode == 200 || rs.StatusCode == 404 { + if rs.StatusCode == 200 || rs.StatusCode == 204 || rs.StatusCode == 404 { return nil } else { return newPathError("Remove", path, rs.StatusCode)