Hey boss
I would add all the blocks to a list variable (when they are placed).
Then I would make a loop for the amount of time. Then set the blocks to air.
on place:
add location of event-block to {blocks::*}
every 10 seconds:
loop {blocks::*}:
set block at location of loop-value to air
Haven't tested but I'm pretty sure this should work.