I'm a little curious about this statement:
I use the d8b both as a recording device
Could you explain that a bit...as the D8B has no recording function beyond its own internal automation.
As to your question...I guess it would depend upon what kind of DAW software you are using. Since you didn't bother to mention what you use, it would be impossible to give you a pertinent answer.
Can it be done? In Cubase, yes. A little inconvenient because you'd have to use a Mute button somewhere on the D8B. The Mute gets assigned to a MIDI Note On value in the D8B. In Cubase, a Generic Device is created and the incoming MIDI note gets routed to a Macro. The Macro must be set up to perform the KeyCommand: Undo (Cmd/Z[Mac]) or (CntrlZ[PC]). I haven't actually tried this, but in theory, it should work: hit the assigned Mute on the D8B and Cubase executes an UNDO....which would be the last thing you did.....recording.
I have no idea if this will work while the D8B is in HUI mode.