How to bind the middle mouse button

Is there a way to bind the middle mouse button? I want middle mouse to delete regions while in grab mode.

Ardour has no facilities for binding mouse buttons to actions. There is a limited amount of flexibility presented in Preferences, but there’s no way to do any kind of arbitrary “this mouse button does <this> under <these> conditions”. You can do this for keys, but not mouse buttons.