Can I clear all events for a device?

I’ve had an issue with a rouge (physical) device that has now left me with a device event list of over 12,000 events. It takes the event page over 30 seconds to load the first 10 events.
My question is, can I clear the event history for this device somehow?

Only way to to delete the device, then re-create it.

I thought it might come to that. My only thought with that though was - will it remove these events properly from the database or will they be orphaned? It feels like a lot of events so I’d like to make sure they’re cleaned up properly.

afaik it will clean them.

The hub also does db cleanups nightly and after reboots, so you may a few hours after deleting/creating, to reboot your hub (nicely using reboot in the HE console)