mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-30 07:09:01 +08:00
14 lines
232 B
Go
14 lines
232 B
Go
package operation
|
|
|
|
import (
|
|
"code.google.com/p/weed-fs/go/util"
|
|
)
|
|
|
|
func DeleteFile(master string, fileId string) error {
|
|
fileUrl, err := LookupFileId(master, fileId)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return util.Delete(fileUrl)
|
|
}
|