Remove invoiceProfile

@param WobbleCode\BillingBundle\Document\InvoiceProfile $invoiceProfile
438280
public function removeInvoiceProfile(\WobbleCode\BillingBundle\Document\InvoiceProfile $invoiceProfile)
    {
        $this->invoiceProfile->removeElement($invoiceProfile);
    }
472924
public function writeOff()
    {
        if (!empty($this->iId)) {
            $oInvoiceModel = Factory::model('Invoice', 'nails/module-invoice');
            if (!$oInvoiceModel->setWrittenOff($this->iId)) {
                throw new InvoiceException('Failed to write off invoice.');
            }
        }

        return $this;
    }
686456
@Override
	public void removeByCPTaxCategoryId(long CPTaxCategoryId) {
		for (CommerceTaxFixedRate commerceTaxFixedRate : findByCPTaxCategoryId(
				CPTaxCategoryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceTaxFixedRate);
		}
	}
1288723
def deleteProfile(self, profile):
        
        profGroupName = self.profileGroupName(profile)
        logger.debug("Resetting profile settings: {}".format(profGroupName))
        settings = QtCore.QSettings()
        settings.remove(profGroupName)
856251
public function removeDiscUser()
    {
        $oConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        $aRemoveGroups = $this->_getActionIds('oxobject2discount.oxid');
        if ($oConfig->getRequestParameter('all')) {
            $sQ = $this->_addFilter("delete oxobject2discount.* " . $this->_getQuery());
            \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->Execute($sQ);
        } elseif ($aRemoveGroups && is_array($aRemoveGroups)) {
            $sQ = "delete from oxobject2discount where oxobject2discount.oxid in (" . implode(", ", \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quoteArray($aRemoveGroups)) . ") ";
            \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->Execute($sQ);
        }
    }
1066229
public function removeProductorder(\Flowcode\ShopBundle\Entity\ProductOrder $productorders)
    {
        $this->productorders->removeElement($productorders);
    }
516633
def delete(self):
        """"""
        response = delete_profile(self.profile_id)
        response.raise_if_error()
        super(CustomerProfile, self).delete()
439539
def removeProfile(self, profile):
        
        if not profile in self._profiles:
            return
        
        index = self._profiles.index(profile)
        self._profiles.remove(profile)
        self._profileCombo.blockSignals(True)
        self._profileCombo.takeItem(index)
        self._profileCombo.blockSignals(False)
1168240
public function removeCustomerRelations(int $idProductList, array $customerIds): void
    {
        if (count($customerIds) === 0) {
            return;
        }

        $productListCustomerEntities = $this->getFactory()
            ->createProductListCustomerQuery()
            ->filterByFkProductList($idProductList)
            ->filterByFkCustomer_In($customerIds)
            ->find();

        foreach ($productListCustomerEntities as $productListCustomer) {
            $productListCustomer->delete();
        }
    }
781337
protected function _removeProductSuggestions( $productId, $listTypeId,
		MShop_Common_Manager_Interface $productListManager )
	{
		$search = $productListManager->createSearch();
		$expr = array(
			$search->compare( '==', 'product.list.parentid', $productId ),
			$search->compare( '==', 'product.list.type.id', $listTypeId )
		);

		$search->setConditions( $search->combine( '&&', $expr ) );
		$listItems = $productListManager->searchItems( $search );

		$productListManager->deleteItems( array_keys( $listItems ) );
	}
725650
static function removeReferencesToProductCategory( $cartegoryID )
    {
        $db = eZDB::instance();
        $query = "DELETE FROM ezvatrule_product_category WHERE product_category_id=" . (int) $cartegoryID;
        $db->query( $query );
    }
208930
def delete_hls_profile(apps, schema_editor):
    
    Profile = apps.get_model("edxval", "Profile")
    Profile.objects.filter(profile_name=HLS_PROFILE).delete()
515389
public function removeJournal(\HarvestCloud\CoreBundle\Entity\PaymentJournal $journal)
    {
        $this->journals->removeElement($journal);
    }
667634
public function delete($profileId, $reportId, $optParams = array())
  {
    $params = array('profileId' => $profileId, 'reportId' => $reportId);
    $params = array_merge($params, $optParams);
    return $this->call('delete', array($params));
  }
479992
public static void deleteProfiles(File destination, String... profileNames) {
        final Map<String, Profile> modifications = new LinkedHashMap<String, Profile>();
        for (String profileName : profileNames) {
            modifications.put(profileName, null); // null value indicates a deletion
        }

        modifyProfiles(destination, modifications);
    }
680566
public function removeRegistration(WorkspaceRegistrationQueue $workspaceRegistration)
    {
        $this->dispatcher->dispatch(
            'log',
            'Log\LogWorkspaceRegistrationDecline',
            [$workspaceRegistration]
        );

        $this->om->remove($workspaceRegistration);
        $this->om->flush();
    }
80908
def profile_remove_command(profile_command)
      profile_command.desc _('cli.profile.remove.desc')
      profile_command.command :remove do |profile_remove_command|
        profile_remove_command.action do |global_options,options,args|
          Bebox::ProfileWizard.new.remove_profile(project_root)
        end
      end
    end