delete an action over time limit

is there any way to stop an action after a certain amount of time
after X amount of time delete this action

anything like that as i cant find a way or even a time limit so
For X amount of time do somthing

Use a timer. Then, use the condition to test the timer but invert it (there is a small checkbox at the bottom of the condition list window to invert a condition).