diff --git a/routers/api/v1/repo/modelarts.go b/routers/api/v1/repo/modelarts.go index 0e90b43d3..283696007 100755 --- a/routers/api/v1/repo/modelarts.go +++ b/routers/api/v1/repo/modelarts.go @@ -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 -//}