Is there a key command or macro for this?

Is there a key command or a macro that will delete automation when you delete a midi clip or audio event? The way I do it now is to select the range tool swipe over the event or clip and press delete which will also delete the automation as well.