|
|
|
@@ -324,21 +324,3 @@ func ModelList(ctx *context.APIContext) { |
|
|
|
"PageIsCloudBrain": true, |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
//func DeleteJobStorage(jobName string) error { |
|
|
|
// //delete local |
|
|
|
// localJobPath := setting.JobPath + jobName |
|
|
|
// err := os.RemoveAll(localJobPath) |
|
|
|
// if err != nil { |
|
|
|
// log.Error("RemoveAll(%s) failed:%v", localJobPath, err) |
|
|
|
// } |
|
|
|
// |
|
|
|
// //delete oss |
|
|
|
// dirPath := setting.CodePathPrefix + jobName + "/" |
|
|
|
// err = storage.ObsRemoveObject(setting.Bucket, dirPath) |
|
|
|
// if err != nil { |
|
|
|
// log.Error("ObsRemoveObject(%s) failed:%v", localJobPath, err) |
|
|
|
// } |
|
|
|
// |
|
|
|
// return nil |
|
|
|
//} |