code: def remove_partition(self, partition):
          
          if partition in self._partitions:
              # Remove partition from set
              self._partitions.remove(partition)
              # Remove broker from replica list of partition
              partition.replicas.remove(self)
          else:
              raise ValueError(
                  'Partition: {topic_id}:{partition_id} not found in broker '
                  '{broker_id}'.format(
                      topic_id=partition.topic.id,
                      partition_id=partition.partition_id,
                      broker_id=self._id,
                  )
              )
docs: Remove partition from partition list.