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