code: protected function clearParcel(Shipment\ShipmentParcelInterface $parcel)
      {
          if (empty($parcel->getTrackingNumber()) && !$parcel->hasLabels()) {
              return false;
          }
  
          $parcel->setTrackingNumber(null);
  
          foreach ($parcel->getLabels() as $label) {
              $parcel->removeLabel($label);
          }
  
          return true;
      }
docs: Clears the parcel data.
  
  @param Shipment\ShipmentParcelInterface $parcel
  
  @return bool