Hi @Anonymous,
Could you please share a screenshot of your flow's configuration?
For your first question, do you want to kill a running flow automatically after 30 days if it is still running?
If you want to kill a running flow automatically after 30 days if it is still running, I think it is not necessary to add extra actions to achieve your needs, because the running flow would be timed out after 30 days.
There is a limit in Run duration of a single flow run, the max Run duration of a single flow run is 30 days. More details about the Run duration and retention limits of a single flow run, please check the following article:
Run duration and retention limits
If you want to kill a running flow after 7 days (less than 30 days), I think a Delay action and a Terminate action could achieve your needs. I have made a test on my side, please take a try with the following workaround:
More details about creating a Parallel branch action in flow, please check the following blog:
https://flow.microsoft.com/en-us/blog/parallel-actions/
For your second question, do you want to kill your flow immediately when an action is taken within your PowerApps app?
If you want to kill your flow immediately when an action is taken within your PowerApps app, I afraid that there is no way to achieve your needs currently.
If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:
https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas
Best regards,
Kris