I want to empty an array when the user clicks a button a second time while an async function is running.
At the moment because it is an async function I am adding to the array rather than emptying it when you click the button a second time while the function is running.