Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

delete operation does not need this checking

Chris Lua57162e8bf14
diff --git a/weed/util/http_util.go b/weed/util/http_util.go
index 2379e3b2b7..83302663e9 100644
--- a/weed/util/http_util.go
+++ b/weed/util/http_util.go
@@ -87,9 +87,6 @@ func Delete(url string, jwt security.EncodedJwt) error {
return e
}
defer resp.Body.Close()
- if resp.StatusCode >= 400 {
- return fmt.Errorf("%s: %s", url, resp.Status)
- }
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
return err