Get Resource Url for DeletePriceList
@param cascadeDeleteEntries Specifies whether to deletes all price list entries associated with the price list.
@param priceListCode The unique, user-defined code of the price list.
@return   String Resource Url
519014
public static MozuUrl deletePriceListUrl(Boolean cascadeDeleteEntries, String priceListCode)
	{
		UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/pricelists/{priceListCode}?cascadeDeleteEntries={cascadeDeleteEntries}");
		formatter.formatUrl("cascadeDeleteEntries", cascadeDeleteEntries);
		formatter.formatUrl("priceListCode", priceListCode);
		return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
	}
166924
@Override
	public void removeByCommercePriceListId(long commercePriceListId) {
		for (CommercePriceEntry commercePriceEntry : findByCommercePriceListId(
				commercePriceListId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commercePriceEntry);
		}
	}
1263900
public static com.liferay.commerce.price.list.model.CommerceTierPriceEntry createCommerceTierPriceEntry(
		long commerceTierPriceEntryId) {
		return getService()
				   .createCommerceTierPriceEntry(commerceTierPriceEntryId);
	}
1002832
public function delete($priceRuleId, DiscountCode $discountCode)
    {
        $endpoint = '/admin/price_rules/'.$priceRuleId.'/discount_codes/'.$discountCode->id.'.json';
        $this->request($endpoint, 'DELETE');
        return;
    }
723302
public static void recursiveDelete(final ServiceBundler services, final Session session, final IRI identifier,
            final String baseUrl) {
        final List<IRI> resources = services.getResourceService().get(identifier)
            .thenApply(res -> res.stream(LDP.PreferContainment).map(Quad::getObject).filter(IRI.class::isInstance)
                    .map(IRI.class::cast).collect(toList())).toCompletableFuture().join();
        resources.forEach(id -> recursiveDelete(services, session, id, baseUrl));
        resources.stream().parallel().map(id -> {
                final TrellisDataset immutable = TrellisDataset.createDataset();
                services.getAuditService().creation(id, session).stream()
                    .map(skolemizeQuads(services.getResourceService(), baseUrl)).forEachOrdered(immutable::add);

                return services.getResourceService().delete(Metadata.builder(id).interactionModel(LDP.Resource)
                        .container(identifier).build())
                    .thenCompose(future -> services.getResourceService().add(id, immutable.asDataset()))
                    .whenComplete((a, b) -> immutable.close())
                    .thenAccept(future -> services.getEventService().emit(new SimpleEvent(externalUrl(id, baseUrl),
                                session.getAgent(), asList(PROV.Activity, AS.Delete), singletonList(LDP.Resource))));
            })
            .map(CompletionStage::toCompletableFuture).forEach(CompletableFuture::join);
    }
988922
public static com.liferay.commerce.discount.model.CommerceDiscount deleteCommerceDiscount(
		com.liferay.commerce.discount.model.CommerceDiscount commerceDiscount)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().deleteCommerceDiscount(commerceDiscount);
	}
95536
public static MozuUrl deleteCouponUrl(String couponCode, String couponSetCode)
	{
		UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/couponsets/{couponSetCode}/couponcodes/{couponCode}");
		formatter.formatUrl("couponCode", couponCode);
		formatter.formatUrl("couponSetCode", couponSetCode);
		return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
	}
1232150
def get_delete_url(self):
        """"""
        return reverse('trionyx:model-delete', kwargs={
            'app': self.get_app_label(),
            'model': self.get_model_name(),
            'pk': self.object.id
        })
111733
@Override
	public void clearCache() {
		entityCache.clearCache(CommerceTierPriceEntryImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
997205
public String buildDeleteSiblings() {

        StringBuffer result = new StringBuffer(512);
        if (isMultiOperation() || (hasSiblings() && hasCorrectLockstate())) {
            // show only for multi resource operation or if resource has siblings and correct lock state
            CmsResourceDeleteMode defaultMode = Boolean.valueOf(getParamDeleteSiblings()).booleanValue()
            ? CmsResource.DELETE_REMOVE_SIBLINGS
            : CmsResource.DELETE_PRESERVE_SIBLINGS;
            if (!isMultiOperation()) {
                result.append(key(Messages.GUI_DELETE_WARNING_SIBLINGS_0));
                result.append("<p>");
            }
            result.append("<input type=\"radio\" name=\"");
            result.append(PARAM_DELETE_SIBLINGS);
            result.append("radio\" value=\"false\"");
            if (defaultMode == CmsResource.DELETE_PRESERVE_SIBLINGS) {
                result.append(" checked=\"checked\"");
            }
            result.append(" onclick='reloadDialog(false);'>&nbsp;");
            result.append(key(Messages.GUI_DELETE_PRESERVE_SIBLINGS_0));
            result.append("<br>");
            result.append("<input type=\"radio\" name=\"");
            result.append(PARAM_DELETE_SIBLINGS);
            result.append("radio\" value=\"true\"");
            if (defaultMode == CmsResource.DELETE_REMOVE_SIBLINGS) {
                result.append(" checked=\"checked\"");
            }
            result.append(" onclick='reloadDialog(true);'>&nbsp;");
            result.append(key(Messages.GUI_DELETE_ALL_SIBLINGS_0));
            result.append("<p>");
        }
        return result.toString();
    }
707578
@Override
	public CommerceTierPriceEntry removeByUUID_G(String uuid, long groupId)
		throws NoSuchTierPriceEntryException {
		CommerceTierPriceEntry commerceTierPriceEntry = findByUUID_G(uuid,
				groupId);

		return remove(commerceTierPriceEntry);
	}
645461
private void deleteDurableSubscription(
    boolean callProxyCode)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "deleteDurableSubscription",
        new Object[] {
          new Boolean(callProxyCode) });

    HashMap durableSubsTable =
      _destinationManager.getDurableSubscriptionsTable();

    synchronized (durableSubsTable)
    {
      // Get the consumerDispatcher from the durable subscriptions table
      ConsumerDispatcher consumerDispatcher =
        (ConsumerDispatcher) durableSubsTable.get(
          _subState.getSubscriberID());

      //If entire topicspace has been deleted, the subscription will have already
      //been removed.
      if (consumerDispatcher != null)
      {
        // Check if the subscription from the durable subscriptions table is this
        // subscription.  Its possible that the topicspace this subscription was on
        // was deleted and a new subscription with the same id has been added into
        // the table
        if (consumerDispatcher.dispatcherStateEquals(_subState))
        {
          // Remove consumerDispatcher from durable subscriptions table
          durableSubsTable.remove(_subState.getSubscriberID());

          // Delete consumerDispatcher ( implicit remove from matchspace)
          try
          {
            // Don't need to send the proxy delete event message
            // just need to reset the memory to the stat
            consumerDispatcher.deleteConsumerDispatcher(
              callProxyCode);
          }
          catch (SIException e)
          {
            FFDCFilter.processException(
              e,
              "com.ibm.ws.sib.processor.impl.store.itemstreams.DurableSubscriptionItemStream.deleteDurableSubscription",
              "1:626:1.95",
              this);

            SibTr.exception(tc, e);

            // Could not delete consumer dispatcher
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.exit(tc, "deleteDurableSubscription", e);
          }
        }
      }
    }

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "deleteDurableSubscription");
  }
666578
private CmsDeleteResourceBean getBrokenLinks(CmsResource entryResource) throws CmsException {

        CmsDeleteResourceBean result = null;

        CmsListInfoBean info = null;
        List<CmsBrokenLinkBean> brokenLinks = null;

        CmsObject cms = getCmsObject();
        String resourceSitePath = cms.getSitePath(entryResource);

        ensureSession();

        List<CmsResource> descendants = new ArrayList<CmsResource>();
        HashSet<CmsUUID> deleteIds = new HashSet<CmsUUID>();

        descendants.add(entryResource);
        if (entryResource.isFolder()) {
            descendants.addAll(cms.readResources(resourceSitePath, CmsResourceFilter.IGNORE_EXPIRATION));
        }

        for (CmsResource deleteRes : descendants) {
            deleteIds.add(deleteRes.getStructureId());
        }
        Multimap<CmsResource, CmsResource> linkMap = HashMultimap.create();
        for (CmsResource resource : descendants) {
            List<CmsRelation> relations = cms.getRelationsForResource(resource, CmsRelationFilter.SOURCES);
            List<CmsResource> result1 = new ArrayList<CmsResource>();
            for (CmsRelation relation : relations) {
                // only add related resources that are not going to be deleted
                if (!deleteIds.contains(relation.getSourceId())) {
                    CmsResource source1 = relation.getSource(cms, CmsResourceFilter.ALL);
                    if (!source1.getState().isDeleted()) {
                        result1.add(source1);
                    }
                }
            }
            List<CmsResource> linkSources = result1;
            for (CmsResource source : linkSources) {
                linkMap.put(source, resource);
            }
        }

        brokenLinks = getBrokenLinkBeans(linkMap);
        info = getPageInfo(entryResource);

        result = new CmsDeleteResourceBean(resourceSitePath, info, brokenLinks);

        return result;
    }
22719
protected final String getForRetrieveForEditDelete(final Class<?> pClass) {
    if (this.seEntities.contains(pClass)) {
      return null;
    } else if (pClass == ServiceSpecifics.class
      || pClass == GoodsSpecifics.class) {
      return PrcItemSpecificsRetrieve.class.getSimpleName();
    } else if (IPersistableBase.class.isAssignableFrom(pClass)) {
      return PrcEntityPbEditDelete.class.getSimpleName();
    }
    return PrcEntityRetrieve.class.getSimpleName();
  }
1079467
@Override
	public com.liferay.commerce.price.list.model.CommerceTierPriceEntry updateCommerceTierPriceEntry(
		com.liferay.commerce.price.list.model.CommerceTierPriceEntry commerceTierPriceEntry) {
		return _commerceTierPriceEntryLocalService.updateCommerceTierPriceEntry(commerceTierPriceEntry);
	}
891580
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceSubscriptionEntry deleteCommerceSubscriptionEntry(
		CommerceSubscriptionEntry commerceSubscriptionEntry) {
		return commerceSubscriptionEntryPersistence.remove(commerceSubscriptionEntry);
	}
1090500
@Override
	public CommercePriceEntry removeByUUID_G(String uuid, long groupId)
		throws NoSuchPriceEntryException {
		CommercePriceEntry commercePriceEntry = findByUUID_G(uuid, groupId);

		return remove(commercePriceEntry);
	}