public async Task <ActionResult> Delete(string name)
        {
            if (name == null)
            {
                return(BadRequest("Missing name"));
            }
            try
            {
                string fileName = name;
                if (!name.EndsWith(".txt"))
                {
                    fileName = name + ".txt";
                }
                SetStorageAccount();
                await fileStorageService.DeleteFile(fileShare, fileName);
            }
            catch (Exception)
            {
                return(BadRequest());
            }

            return(NoContent());
        }
예제 #2
0
 public async Task DeletePrediction(string name)
 {
     _predictionSetData.DeletePredictionDataSet(name);
     string ruleFile = name + ".json";
     await _fileStorage.DeleteFile(ruleShare, ruleFile);
 }
예제 #3
0
 public async Task DeletePipeline(string name)
 {
     await _fileStorage.DeleteFile(fileShare, name);
 }