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()); }
public async Task DeletePrediction(string name) { _predictionSetData.DeletePredictionDataSet(name); string ruleFile = name + ".json"; await _fileStorage.DeleteFile(ruleShare, ruleFile); }
public async Task DeletePipeline(string name) { await _fileStorage.DeleteFile(fileShare, name); }