public void RemoveNavigationLink(string data) { try { if (string.IsNullOrEmpty(data)) { return; } var provider = new GenericLinkProvider(_spWeb.Site.ID, _spWeb.ID, _spWeb.CurrentUser.LoginName); provider.Remove(new Guid(data)); } catch (Exception exception) { throw new APIException(20004, "[NavigationService:RemoveNavigationLink] " + exception.Message); } }