public ReturnStatus Execute() { ReturnStatus status = new ReturnStatus(); ApplicationContainer container = new ApplicationContainer(WithAppUuid, WithContainerUuid, null, WithAppName, WithContainerName, WithNamespace, null, null, null); try { List<string> gears = null; List<string> keys = WithKeys.Split(' ').ToList(); if (!string.IsNullOrEmpty(WithGears)) { gears = new List<string>(); JArray gearsObj = (JArray)JsonConvert.DeserializeObject(WithGears); foreach (var gearObj in gearsObj) { gears.Add(gearObj.ToString()); } } status.Output = container.UserVarRemove(keys, gears); status.ExitCode = 0; } catch (Exception ex) { Logger.Error("Error running oo-user-var-remove command: {0} - {1}", ex.Message, ex.StackTrace); status.Output = ex.ToString(); status.ExitCode = 1; } return status; }