title: Firebase Firestore Android Deleting Multiplayer Game Documents
body: <p>So I have a game where two devices/users are connected to a firestore Game document. At the end of the game, I load the game results to both users and then they move on to another game. My issue right now is thinking of the best way of deleting completed game objects. Once a game is completed it no longer needs to be in firestore. I just tested putting <code>gameDocRef.delete()</code> for both users at the end but then occasionally one player deletes it too fast and the other can't load the results. </p>
  
  <p>Is there a better/automated way of cleaning up completed documents? Maybe Firebase Functions or something? Any advice is apprectiated :) </p>