seaweedfs/go/operation/delete_content.go
2014-04-14 01:07:11 -07:00

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)
}