seaweedfs/go/operation/delete_content.go

14 lines
232 B
Go
Raw Normal View History

2012-09-26 10:27:10 +00:00
package operation
import (
2014-03-20 20:30:34 +00:00
"code.google.com/p/weed-fs/go/util"
2012-09-26 10:27:10 +00:00
)
func DeleteFile(server string, fileId string) error {
2013-11-19 07:03:59 +00:00
fileUrl, err := LookupFileId(server, fileId)
if err != nil {
return err
2013-08-14 07:31:02 +00:00
}
2014-03-20 20:30:34 +00:00
return util.Delete(fileUrl)
2012-09-26 10:27:10 +00:00
}