mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-08 04:57:50 +01:00
delete replications, untested yet
This commit is contained in:
1 parent
b5c29e25aa
commit
4b3676a54b
3 files changed
+88
-57
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package operation
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func Delete(url string) error {
|
||||
req, err := http.NewRequest("DELETE", url, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = http.DefaultClient.Do(req)
|
||||
return err
|
||||
}
|
||||
Reference in new issue
Block a user