public async Task <IActionResult> RemoveAsync([FromBody] NameDto nameDto) { if (!ModelState.IsValid) { return(this.ValidationError()); } Application app = this.GetApplication(); ApplicationService serv = this.GetService(); ServiceEnvironment env = this.GetEnvironment(); try { await _client.RemoveConfigAsync(app.Key, serv.Key, env.Key, nameDto.Name); } catch (KeyVaultErrorException) { return(Json(ErrorDto.Create(ErrorCodes.ConfigNameNotFound))); } return(Ok()); }