Old Apps and Devices persist in Log Header

I have several devices and a couple apps showing up in the header for the logs page. These are devices/rules that are long since deleted. How do you force the system to refresh this list as to drop the old ones?

Easiest way is too do a reboot with the Advanced option of Purge Logs

6 Likes

Is there another way?

1 Like

:rofl: not really...

The wise one has spoken.... Reboot it is.... :slight_smile:

1 Like

Yes that worked. Thanks.

1 Like

Not sure I can take credit, but good to hear a reboot worked.

Yes, waiting for them to purge themselves out (logs get routinely trimmed to 1 MB).

1 Like

It's one of those things that has been requested many times...a 'Purge logs' button
Do Want Give It To Me GIF

Edit: My mate (ChatGPT) just explained to me why it's perhaps nota trivial undertaking:

Why the button is bad idea

UI-wise (the easy part)

Adding a “Purge logs” button to the Logs page is straightforward:

  • It’s just another UI action in the admin interface
  • It would call an existing backend endpoint (or a new one)
  • The front-end change is small (button + confirmation dialog)

So from a pure interface standpoint: low effort, maybe a quick dev task (hours to a day or two).

Backend-wise (where it gets trickier)

Hubitat logs aren’t just a temporary list—they’re stored in a constrained internal database/log system that:

  • Has size limits (logs are effectively a rolling dataset)
  • Is designed to auto-purge as it fills rather than being manually managed
  • Prioritises stability and low CPU usage over ad-hoc operations

So a “purge everything instantly” feature is not just a delete button:

  • It likely needs a safe truncate/reset operation
  • Must avoid locking or stressing the hub database
  • Needs safeguards so users don’t accidentally wipe debugging data mid-troubleshoot
2 Likes

star wars GIF

:wink:

2 Likes

I should maybe change my username - Karen has a certain ring to it :rofl:

Edit: That was NOT a request!

2 Likes

Lol...

We can all be Karen's.... but I wouldn't want to see everyone called Karen... :slight_smile:

Plus, I might take the easy option to poke fun, but there is nothing wrong, IMO, in raising that this has been requested before... however difficult it may be to implement by a collection of computers somewhere... :wink:

Having read AI's explanation of why such a button isn't necessarily a great idea I'll not mention it again. Nesting of RM rules for organisational purposes without the need for a third party app (or prepending with emojis etc...I'll never tire of whinging about that

I'm happy to continue to claim ignorance.... :slight_smile: