This blog post was created off the back of this community tip
@VincentD123 also created this post with a different method of doing this clear down operation.
Lots of different ways to do the same thing which personally, I kinda like, it then leaves it up to our users to add their own personal stamp on things.