original_string: public function deleteFileAndChunksById($id)
      {
          $this->filesCollection->deleteOne(['_id' => $id]);
          $this->chunksCollection->deleteMany(['files_id' => $id]);
      }
code: public function deleteFileAndChunksById($id)
      {
          $this->filesCollection->deleteOne(['_id' => $id]);
          $this->chunksCollection->deleteMany(['files_id' => $id]);
      }
code_tokens: public function deleteFileAndChunksById ( $ id ) { $ this -> filesCollection -> deleteOne ( [ '_id' => $ id ] ) ; $ this -> chunksCollection -> deleteMany ( [ 'files_id' => $ id ] ) ; }
docstring: Deletes a GridFS file and related chunks by ID.
  
  @param mixed $id
docstring_tokens: Deletes a GridFS file and related chunks by ID .