What I don’t understand about this approach is why you think it actually does anything for you ? What you do instead of this is to setup an alert to monitor disk space at the right threshold for you, and then have a contingency plan for how to add more space to your environment.
It seems like you have sort of done that, but in this case you are actually allowing your system to get into a bad state before you react.
Perhaps it’s better to be proactive instead of reactive.