Remove an existing recurring application charge

@link   https://help.shopify.com/api/reference/recurringapplicationcharge#destroy
@param  RecurringApplicationCharge $recurringApplicationCharge
@return void
4424
public function delete(RecurringApplicationCharge $recurringApplicationCharge)
    {
        $endpoint= '/admin/recurring_application_charges/'.$recurringApplicationCharge->id.'.json';
        $response = $this->request($endpoint, 'DELETE');
    }
595017
public void destroyingApplication(JPAApplInfo applInfo)
    {
        final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
        if (isTraceOn && tc.isEntryEnabled())
            Tr.entry(tc, "destroyingApplication : " + applInfo.getApplName());

        applInfo.closeAllScopeModules();
        applList.remove(applInfo.getApplName()); // d643462

        if (isTraceOn && tc.isDebugEnabled())
            Tr.debug(tc, "Current application list : " + getSortedAppNames());

        if (isTraceOn && tc.isEntryEnabled())
            Tr.exit(tc, "destroyingApplication : " + applInfo.getApplName());
    }
923696
@Override
    public void deleteApplication(ApplicationDefinition appDef) {
        checkServiceState();
        deleteApplicationCFs(appDef);
        m_shardCache.clear(appDef);
    }
1115769
public function remove($entity)
    {
        if ($this->evm->hasListeners(Events::preRemove)) {
            $this->evm->dispatchEvent(Events::preRemove, new Event\LifecycleEventArgs($entity, $this->sm));
        }

        $oid = spl_object_hash($entity);
        $this->scheduledForDelete[$oid] = $entity;

        if ($this->evm->hasListeners(Events::postRemove)) {
            $this->evm->dispatchEvent(Events::postRemove, new Event\LifecycleEventArgs($entity, $this->sm));
        }
    }
1081606
public function destroy()
    {
        $this->registry[$this->section] = array();
        $dcc = $this->getDrupalCommonConnector();

        $dcc->variable_del($this->section);

        $content = $dcc->variable_get($this->section, array());

        if (!empty($content)) {
            throw new \InvalidArgumentException(
                "Section $this->section could not be destroyed from the registry."
            );
        }
    }
135717
public int removeApplication(App application)
    {
Utility.getLogger().info("removeApp: " + application);
        m_vApplication.remove(application);     // Add code here
        if (m_applicationDefault == application)
            m_applicationDefault = null;        // Initialization app
        return m_vApplication.size();
    }
285429
public function get($recurringApplicationChargeId, array $params = array())
    {
        $endpoint = '/admin/recurring_application_charges/'.$recurringApplicationChargeId.'.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createObject(RecurringApplicationCharge::class, $response['recurring_application_charge']);
    }
985823
public static function unregisterApp(?string $app = null): void
    {
        self::initialize();
        if ($app === null) {
            $app = '*';
        }
        if (self::isAppRegistered($app)) {
            unset(self::$repositories[$app]);
        }
    }
435512
public function delete(ScheduledTask $scheduledTask)
    {
        $this->om->remove($scheduledTask);
        $this->om->flush();
    }
1193637
public function removeRepeating(string $repeatingValue = ' '): Utility
    {
        $string = preg_replace('{(' . preg_quote($repeatingValue) . ')\1+}', $repeatingValue, $this->string);

        return new static($string, $this->encoding);
    }
1301950
function removeApp(container) {
  var elem = new Elem(container).elem(0);

  if (!elem.length) {
    console.error('No valid element to remove the app from was given! (removeApp)');

    return;
  }

  container = elem[0];

  var _container = container,
      DwayneRootBlock = _container.DwayneRootBlock;


  if (!(DwayneRootBlock instanceof Block)) {
    console.error('No app registered inside the given element! (removeApp)');

    return;
  }

  DwayneRootBlock.$$.remove();
  elem.removeAttr('dwayne-root');

  delete container.DwayneRootBlock;
}
1018691
public function destroyNotPermanentActions(ManialinkInterface $manialink)
    {
        if (isset($this->actionsByManialink[$manialink->getId()])) {
            foreach ($this->actionsByManialink[$manialink->getId()] as $actionId => $action) {
                if (!$action->isPermanent()) {
                    $this->destroyAction($actionId);
                }
            }
        }
    }
937930
public function removeApplicationGroups(ApplicationGroup ...$groups)
    {
        foreach ($groups as $group) {
            $this->getApplicationGroups()->removeElement($group);
        }

        return $this;
    }
14709
public function disableRecurringContract($recurringDetailReference, $shopperReference, $store = null)
    {
        $merchantAccount = $this->_helper()->getConfigData('merchantAccount', null, $store);

        $request = array(
            "action" => "Recurring.disable",
            "disableRequest.merchantAccount" => $merchantAccount,
            "disableRequest.shopperReference" => $shopperReference,
            "disableRequest.recurringDetailReference" => $recurringDetailReference
        );

        $result = $this->_doRequest($request, $store);

        // convert result to utf8 characters
        $result = utf8_encode(urldecode($result));

        if ($result != "disableResult.response=[detail-successfully-disabled]") {
            Adyen_Payment_Exception::throwException(Mage::helper('adyen')->__($result));
        }

        return true;
    }
231603
protected void destroyApplicationSession(final HttpServletRequest request, final HttpServletResponse response) {
        LOGGER.trace("Destroying application session");
        val context = new J2EContext(request, response, new J2ESessionStore());
        val manager = new ProfileManager<>(context, context.getSessionStore());
        manager.logout();

        val session = request.getSession(false);
        if (session != null) {
            val requestedUrl = session.getAttribute(Pac4jConstants.REQUESTED_URL);
            session.invalidate();
            if (requestedUrl != null && !requestedUrl.equals(StringUtils.EMPTY)) {
                request.getSession(true).setAttribute(Pac4jConstants.REQUESTED_URL, requestedUrl);
            }
        }
    }
1228231
public function remove()
    {
        $f = json_decode(file_get_contents(FEnv::get("framework.root").
            "elements/config_files/core/apps.json"));
        foreach ($f as $one => $val) {
            if ($val->name == $this->name) {
                unset($f->$one);
                break;
            }
        }

        $f = json_encode($f, JSON_PRETTY_PRINT);
        file_put_contents(FEnv::get("framework.root")."elements/config_files/core/apps.json", $f);

        Server::delete(FEnv::get("framework.root")."apps/".$this->name, "directory");
        Server::delete(
            FEnv::get("framework.root")."public/components/apps/".strtolower($this->name),
            'directory'
        );
    }
494380
public function create($recurringApplicationChargeId, UsageCharge $usageCharge)
    {
        $data = $usageCharge->exportData();
        $endpoint = '/admin/recurring_application_charges/'.$recurringApplicationChargeId.'/usage_charges.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'usage_charge' => $data
            )
        );
        $usageCharge->setData($response['usage_charge']);
    }