seaweedfs/go/operation/delete_content.go
2014-03-20 13:30:34 -07:00

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