public function deleteUserDataThreadInfo(Entity $entity) {
    $this->userData->delete('private_message', $this->currentUser->id(), 'private_message_thread:' . $entity->id());
  }
public function deleteUserDataThreadInfo(Entity $entity) {
    $this->userData->delete('private_message', $this->currentUser->id(), 'private_message_thread:' . $entity->id());
  }
public function deleteUserDataThreadInfo ( Entity $ entity ) { $ this -> userData -> delete ( 'private_message' , $ this -> currentUser -> id ( ) , 'private_message_thread:' . $ entity -> id ( ) ) ; }
Remove the thread info from the user_data.

@param \Drupal\Core\Entity\Entity $entity
The thread entity.
Remove the thread info from the user_data .