Removes the commerce order note where companyId = &#63; and externalReferenceCode = &#63; from the database.

@param companyId the company ID
@param externalReferenceCode the external reference code
@return the commerce order note that was removed
356496
@Override
	public CommerceOrderNote removeByC_ERC(long companyId,
		String externalReferenceCode) throws NoSuchOrderNoteException {
		CommerceOrderNote commerceOrderNote = findByC_ERC(companyId,
				externalReferenceCode);

		return remove(commerceOrderNote);
	}
1268197
@Override
	public CommerceAccount removeByC_ERC(long companyId,
		String externalReferenceCode) throws NoSuchAccountException {
		CommerceAccount commerceAccount = findByC_ERC(companyId,
				externalReferenceCode);

		return remove(commerceAccount);
	}
166175
@Override
	public CommerceTaxMethod removeByG_E(long groupId, String engineKey)
		throws NoSuchTaxMethodException {
		CommerceTaxMethod commerceTaxMethod = findByG_E(groupId, engineKey);

		return remove(commerceTaxMethod);
	}
1254490
@Override
	public void removeByG_A_C(long groupId, boolean active,
		long commerceCountryId) {
		for (CommerceWarehouse commerceWarehouse : findByG_A_C(groupId, active,
				commerceCountryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceWarehouse);
		}
	}
1039370
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CPAttachmentFileEntry cpAttachmentFileEntry : findByUuid_C(uuid,
				companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpAttachmentFileEntry);
		}
	}
385158
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CommerceCountry commerceCountry : findByUuid_C(uuid, companyId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceCountry);
		}
	}
809302
public function findCompanyByExternalReference(string $externalReference): ?CompanyTransfer
    {
        $spyCompany = $this->getFactory()
            ->getCompanyPropelQuery()
            ->filterByExternalReference($externalReference)
            ->findOne();

        if ($spyCompany === null) {
            return null;
        }

        $company = (new CompanyTransfer())->fromArray(
            $spyCompany->toArray(),
            true
        );

        return $company;
    }
1060813
@Override
	public void removeByC_LtD_S(long CPDefinitionId, Date displayDate,
		int status) {
		for (CPInstance cpInstance : findByC_LtD_S(CPDefinitionId, displayDate,
				status, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpInstance);
		}
	}
1138826
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CProduct cProduct : findByUuid_C(uuid, companyId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cProduct);
		}
	}
1341180
@Override
	public List<CommerceAccount> filterFindByCompanyId(long companyId) {
		return filterFindByCompanyId(companyId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
1301363
@Override
	public void removeByCompanyId(long companyId) {
		for (CPInstance cpInstance : findByCompanyId(companyId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpInstance);
		}
	}
855430
@Override
	public void removeByC_I(long commerceOrderId, long CPInstanceId) {
		for (CommerceOrderItem commerceOrderItem : findByC_I(commerceOrderId,
				CPInstanceId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrderItem);
		}
	}
184100
@Override
	public List<CommerceOrder> getCommerceOrdersByUuidAndCompanyId(
		String uuid, long companyId) {
		return commerceOrderPersistence.findByUuid_C(uuid, companyId);
	}
736829
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CPDefinitionLink cpDefinitionLink : findByUuid_C(uuid, companyId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionLink);
		}
	}
643952
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CommerceNotificationAttachment commerceNotificationAttachment : findByUuid_C(
				uuid, companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceNotificationAttachment);
		}
	}
618158
public static List<CommerceDiscount> findByUuid_C(String uuid,
		long companyId) {
		return getPersistence().findByUuid_C(uuid, companyId);
	}
4234
def remove_external_references(self):
        
        for ex_ref_node in self.node.findall('externalReferences'):
            self.node.remove(ex_ref_node)