aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server_handlers_admin.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-10-15 01:26:49 -0700
committerChris Lu <chris.lu@gmail.com>2018-10-15 01:26:49 -0700
commit66a353dcb551d621c4a59220fb4c8475a47e640a (patch)
tree44b28727aa466efdf30f4d9be0777a6d4ed53cf9 /weed/server/volume_server_handlers_admin.go
parentfda771c83fd2702dc791244065b5886e5a3b9df2 (diff)
downloadseaweedfs-66a353dcb551d621c4a59220fb4c8475a47e640a.tar.xz
seaweedfs-66a353dcb551d621c4a59220fb4c8475a47e640a.zip
remove volume server /admin/volume/delete
Diffstat (limited to 'weed/server/volume_server_handlers_admin.go')
-rw-r--r--weed/server/volume_server_handlers_admin.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/weed/server/volume_server_handlers_admin.go b/weed/server/volume_server_handlers_admin.go
index e11ae9705..584a060e0 100644
--- a/weed/server/volume_server_handlers_admin.go
+++ b/weed/server/volume_server_handlers_admin.go
@@ -61,13 +61,3 @@ func (vs *VolumeServer) getVolumeUnmountHandler(w http.ResponseWriter, r *http.R
vs.store.UnmountVolume(vid)
writeJsonQuiet(w, r, http.StatusOK, "Volume unmounted")
}
-
-func (vs *VolumeServer) getVolumeDeleteHandler(w http.ResponseWriter, r *http.Request) {
- vid, err := vs.getVolumeId("volume", r)
- if err != nil {
- writeJsonError(w, r, http.StatusNotFound, err)
- return
- }
- vs.store.DeleteVolume(vid)
- writeJsonQuiet(w, r, http.StatusOK, "Volume deleted")
-}