By using setInterval I recursively call the deleteMembers function.