Manually Removing Old Configuration Data
Section titled “Manually Removing Old Configuration Data”Keep your Nodinite environment lean by removing Message Types and Endpoints that no longer receive Log Events. In Nodinite 7 you do this in the Web Client: find the unused items, delete them, then permanently delete them. Every permanent delete shows what goes with the item first and leaves a Log Audit entry.
- ✅ Find unused Message Types and Endpoints by their Last Event, without SQL
- ✅ Remove many at once with With Selected, after an impact preview
- ✅ Every removal is restorable until you permanently delete it, and audited when you do
- ✅ Read-only SQL queries find candidates when the lists are very long
Understanding the Cleanup
Section titled “ Understanding the Cleanup”Nodinite tracks every combination of Message Type and Endpoint it has logged in the LogPoints table of the Configuration Database, with FirstSeen and LastSeen. The Logging Service keeps them current. An item whose newest LastSeen is older than the retention of its events has no Log Events left in the Log Databases: it is no longer in use.
sort by Last Event"] --> D["fa:fa-trash-can Delete
restorable"] D --> P["fa:fa-trash-xmark Permanently Delete
impact preview"] P --> A["fa:fa-clipboard-list Log Audit
one entry"] style F fill:#2678BD,color:#fff style D fill:#FFD525,color:#000 style P fill:#c33d34,color:#fff style A fill:#3F827B,color:#fff
Blue: you find the candidates in the Message Types or Endpoints list. Yellow: Delete is a soft delete you can undo with Restore. Red: Permanently Delete removes the item and everything that refers to it. Teal: Log Audit Search records who removed what. See Two delete models.
| Item | Its retention | Who may remove it |
|---|---|---|
| Message Type | Its own Days to keep events (also messages and context) | Administrators (Permanently Delete) |
| Endpoint | None of its own: its Log Events follow their Message Types' retention | Administrators (Permanently Delete) |
| Log Agent | Not applicable | Administrators, one at a time; removes every Endpoint of the agent |
Step 1: Find Unused Message Types and Endpoints
Section titled “ Step 1: Find Unused Message Types and Endpoints”- In Administration > Repository, open Message Types (or Endpoints).
- Sort the list by Last Event, oldest first. Last Event is the last time an event with this Message Type (or on this Endpoint) was seen. N/A means the item was never logged.
- The items at the top are your candidates. Compare a Message Type's Last Event with its Days to keep events. For Endpoints, choose your own threshold, such as the longest retention of the Message Types logged on them.
The Web API returns the same value as EventLastSeen for Administrators.
Find candidates with SQL (read-only)
Section titled “Find candidates with SQL (read-only)”With thousands of items, a query can list the candidates for you. These queries only read; run them in SQL Server Management Studio against the Configuration Database, then remove the items in the Web Client (Step 2).
-- Message Types whose every Log Point is older than the Message Type's retention.-- Id 0 is the default Unknown Message Type and is never removed.;WITH Old AS ( SELECT LP.MessageTypeId, MAX(LP.LastSeen) AS LastSeen FROM LogPoints LP JOIN MessageTypes MT ON LP.MessageTypeId = MT.MessageTypeId AND MT.MessageTypeId > 0 GROUP BY LP.MessageTypeId, MT.DaysToKeepEvents HAVING MAX(LP.LastSeen) < DATEADD(DD, MT.DaysToKeepEvents * -1, GETDATE()))SELECT MT.MessageTypeId, MT.Name, Old.LastSeenFROM OldJOIN MessageTypes MT ON MT.MessageTypeId = Old.MessageTypeIdORDER BY Old.LastSeenEach Message Type listed has no Log Point newer than its own retention.
-- Endpoints with no Log Point newer than your threshold (92 days here; Endpoints have no retention of their own).-- Id 0 is the default Endpoint and is never removed.DECLARE @days INT = 92;SELECT EP.EndPointId, EP.Name, MAX(LP.LastSeen) AS LastSeenFROM [EndPoints] EPLEFT JOIN LogPoints LP ON LP.EndPointId = EP.EndPointIdWHERE EP.EndPointId > 0GROUP BY EP.EndPointId, EP.NameHAVING MAX(LP.LastSeen) IS NULL OR MAX(LP.LastSeen) < DATEADD(DD, @days * -1, GETDATE())ORDER BY LastSeenA NULL LastSeen means the Endpoint was never logged.
Step 2: Delete, Then Permanently Delete
Section titled “ Step 2: Delete, Then Permanently Delete”- In the list, tick the candidates, and choose With Selected > Delete. They are soft deleted and can still be restored.
- Tick Include deleted, tick the same items again, and choose With Selected > Permanently Delete.
- Read the impact dialog. It counts what goes with the items (Log Points and their metrics, Custom Metadata values, Tag and Article links, Log and Monitor View filters, Transport Contract links) and lists the Log and Monitor Views that change.
- Tick that you understand it can't be undone, and confirm.
A Message Type that a C4 Flow carries loses only that binding: the Flow stays. An Endpoint's default Message Type is cleared, not the Endpoint. A Transport Contract left without a Message Type or an Endpoint is removed with its Contract. The full lists are in What is removed, and what is kept for Message Types and the same section for Endpoints.
Step 3: Check the Log Audit
Section titled “ Step 3: Check the Log Audit”In Administration > Tools > Log Audit Search, pick the Function cnfg_MessageTypes_HardDelete or cnfg_EndPoints_HardDelete, and click Search. Each permanent delete is one entry that names what was removed and who removed it.