Can we create a macro or a button to combine some buttons?

Greetings!

Does anyone know if we (the user) can create a macro, or program a new button to:

  1. Stop the recording of the track. . . then
  2. Delete the “just recorded” track. . . .then
  3. Rewind to the beginning.
    All in one click?

Thanks,
Harrison